Author: Benedikt Schmidt
Date: 28-10-01 18:37
(written by Benedikt Schmidt but posted by Dan Langille)
XFree86 4 has native support for True Type fonts and therefore you don't need another font server like XfStt which is needed for older versions of X.
There are many places to get TrueType fonts and some of them are described in an older FreeBSD Diary article called "True Type fonts and XFree86".
Once you have all the fonts you want to install do the following as root:
mkdir /usr/X11R6/lib/X11/fonts/TrueType
cp *.ttf /usr/X11R6/lib/X11/fonts/TrueType
After having copied all fonts to the right directory you have to create a fonts.dir file containing information about the fonts.
cd /usr/port/x11-fonts/ttmkfdir && make install
cd /usr/X11R6/lib/X11/fonts/TrueType && ttmkfdir > fonts.scale
cd /usr/X11R6/lib/X11/fonts/TrueType && mkfontdir
After that you just have to tell X to use the new fonts by adding two lines to /etc/X11/XF86Config.
In Section "Module" you add:
Load "freetype"
And in Section "Files" you add:
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
Restart X and start up netscape or xfontsel to see if the new fonts are available.
|
|