Font Antialiasing: Don’t Overlook LCD Filtering
For some reason, the Xfce Appearance configuration dialog doesn’t write a ~/.fonts.conf
for Qt-based applications. Duplicating the obvious settings was simple enough, but still Qt applications looked a tad fuzzy. Turns out I prefer the legacy LCD filter or even no LCD filter over the default and light LCD filters. So if you’re like me, don’t overlook this setting. Many thanks to the ArchWiki, which incidentally links to this very useful set of sample images. You might also want to look at the contents of man fonts-conf
. Here’s my final configuration:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcdlegacy</const>
</edit>
</match>
</fontconfig>