Fixing font rendering in Arch/Gnome
If you use Arch linux you may have noticed that the default font rendering in Gnome is a bit lacking, especially if you don't have Xfce installed as well, this appears to be because Xfce installs gsfonts as one of it's dependancies yet Gnome doesn't. So the first to do is install it.
$ pacman -S gsfonts
The next thing I like to do is to install the liberation font set, and the microsoft web fonts. These are available using pacman and can be installed as follows:
$ pacman -S ttf-liberation ttf-ms-fonts
Then I like to install the versions of freetype, libxft and cairo with the cleartype patches applied. These are available from AUR, so grab them and install them. If you have yaourt you can simply do
yaourt -S cairo-cleartype freetype2-cleartype libxft-cleartype
Then install the packages that it creates (usually in /tmp/yaourt somehwhere). NB: Make sure that if you have installed any of the non cleartype versions of these packages using pacman that you remove them before installing the new versions. If you don't have yaourt installed for whatever reason you can grab the tarballs directly from the AUR repo and build the packages like this:
$ tar zxvf package.src.tar.gz $ cd package $ makepkg $ pacman -U package-i686.pkg.tar.gz
The remaining step is to configure your font preferences in the Gnome Appearance dialog, my preferred settings are:
- Resolution 96dpi
- Subpixel (LCD) smoothing
- Slight Hinting
- RGB Sub-pixel order
Now you should be able to restart X and enjoy some much better looking fonts