I am running Salix13.1.1 with lxde.
I have never been able to get the font hinting right in Qt (4.6.2 or any version).
To get the hinting right for lxde I edit ~/.Xresoures to hintslight:
[codeXft.dpi: 96
Xft.hinting:1
Xft.hintstyle:hintslight
XTerm*background:black
XTerm*foreground:white
XTerm*faceName: Terminus:antialias=False:pixelsize=14][/code]
qtconfig doesn't have a hinting option. I have tried various other methods found on other distro's forums to no avail.
A suggestion would be appreciated.
qt font hinting with lxde
Re: qt font hinting with lxde
My Qt hinting is ok here, except for buggy Opera. You can try installing kdebase and use systemsettings.
Re: qt font hinting with lxde
I created a ~/.fonts.conf as shown below, we seems to do the trick.
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit name="rgba" mode="assign">
<const>none</const>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
</fontconfig>
Re: qt font hinting with lxde
Yep, I have this on my system:
Probably this was created by KDE system settings. Strange that qtconfig doesn't have a dialog for this stuff.
Code: Select all
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintmedium</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
Re: qt font hinting with lxde
I just tried opera 10.62 again and now the fonts are great (I had given up on it as the font were so bad before).
It might be an idea to include a ~/.font.conf file in non-kde Salix with a note in the wiki regarding editing it to specific hinting?
It might be an idea to include a ~/.font.conf file in non-kde Salix with a note in the wiki regarding editing it to specific hinting?