Subject: Documentation/x: anti-aliased fonts...
To: None <netbsd-docs@NetBSD.org>
From: Aleksey Cheusov <cheusov@tut.by>
List: netbsd-docs
Date: 04/28/2007 10:58:04
NetBSD: 4.0_BETA2
X: vendor release number:    40500000

NetBSD Documentation: The X Window System/Runing X/
/How to setup anti-aliased fonts on NetBSD with XFree86 4:

1) Install the following packages from pkgsrc: 
   fonts/ms-ttf
   fonts/mkfontscale
   fonts/fontconfig

If NetBSD X sets are installed, mkfontscale and fontconfig
are already present. Is it really necessary to install them from pkgsrc.
If no, update documentation.

2) Setup the font hints: 
-   mkfontscale /usr/X11R6/lib/X11/fonts/TrueType
+   mkfontscale /usr/X11R6/lib/X11/fonts/TTF
   mkfontdir /usr/X11R6/lib/X11/fonts/TrueType

3) 
Configure the X server: 
...
       In the "Files" section, verify the order of the font paths.
       Verify that the TrueType and Type1 font paths are before the
       rest:

                FontPath   "/usr/X11R6/lib/X11/fonts/local/"
-		FontPath   "/usr/X11R6/lib/X11/fonts/TrueType/"
+		FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"

AFAIK xset +fp should also work fine.

4) Configure Xft -- an example /usr/X11R6/lib/X11/XftConfig follows:

From Xft(3) manual page
...
CONFIGURATION
       The Xft version 2 library uses fontconfig(3) for its configuration. The
       XftConfig files are not used anymore.

I.e., this section should also be updated.

-- 
Best regards, Aleksey Cheusov.