[this article is obsolete]
I believe this topic seems to cause a lot of confusion, so better I'm passing on what I know as I have been getting a good result with font rendering on my system ( OpenBSD /i386 3.1-current). After reading the OpenBSD FAQ page about Antialiasing and TrueType Fonts[1], one could be forgiven for thinking that it's a lot harder that it actually is. I decided I will not delve so deeply into following topics (you might find there are many resources already): generating scale files for font directories, installing TrueType fonts collections, etc
I will just concentrate on how to configure Xft to anti-alias your chosen fontsets, and then optimise them for a good appearance on your screen.
First of all, a glossary should provide a good starting point.
Load "freetype" should be present in your XF86Config file.
/etc/X11/<cmdline>
/usr/ X11R6 /etc/X11/<cmdline>
/etc/X11/$XF86CONFIG
/usr/ X11R6 /etc/X11/$XF86CONFIG
/etc/ X11/XF86Config -4
/etc/ X11/XF86Config
/etc/ XF86Config
/usr/ X11R6 /etc/ X11/XF86Config .<hostname>
/usr/ X11R6 /etc/ X11/XF86Config -4
/usr/ X11R6 /etc/ X11/XF86Config
/usr/ X11R6 /lib/ X11/XF86Config .<hostname>
/usr/ X11R6 /lib/ X11/XF86Config -4
/usr/ X11R6 /lib/ X11/XF86Config
<cmdline> is a relative path (with no ".." components) specified with the -xf86config command line option, $XF86CONFIG is the relative path (with no ".." components) specified by that environment variable, and <hostname> is the machine's hostname as reported by gethostname(3).
libXft.so.
xft, it isn't really needed now unless you want X server to use a font server on a different machine. xfs is not used by default.
OpenBSD has almost all the requirements for doing Anti-Aliasing. For detailed information about requirements and tips, you can read the FAQ[1].
In practice, some modifications to the default XFree86 installation on a OpenBSD system are needed.
Xft configuration file (/etc/X11/Xftconfig) will need to have the fontpaths specified.
The only thing i did was to edit the Xft configuration file to add these modifications.
match
any size > 8
any size < 14
edit antialias = false;
which means that the fonts in range 8pt and 14pt will not get anti-aliased. It's not necessary to anti-alias the normal fontsizes.
match
any pixelsize > 8
any pixelsize < 14
edit antialias = false;
this mean the same, but is enforced for KDE.
All you need is to reboot X and the fonts should look better. But if you still find that the font size is not the same as the pixel size, you can try this
match
any size > 8
any size < 15
edit antialias = false;
match
any size > 10
all weight == bold
edit antialias = true;
match
any pixelsize > 8
any pixelsize < 18
edit antialias = false;
You can also perform specific font treatment:
# Verdana shoud be anti-aliased at 17pts
match
any family == "Verdana"
any pixelsize = 17
edit antialias = false;
# Bold fonts
match
any pixelsize > 15
all weight == bold;
edit antialias = true;
# Times New Roman Italic doesn't look good anti-aliased at larger sizes
match
any family == "Times New Roman"
all slant == italic
any pixelsize > 15
any pixelsize < 20
edit antialias = false;
You can get more detailed information about font configuration and Xft in Keith Packard's website[3]. For KDE users, KDE supports anti-aliasing as of 2.x. You will require QT-2.3.0 or later, and it must be built with Xft support. GNOME does not support anti-aliasing at this time; apparently it will be available in GNOME 2, and will have native support for anti-aliasing.