Configuring Fontconfig
Config files
/etc/fonts/*
Configuration Information
The configuration file for Fontconfig is /etc/fonts/fonts.conf.
Generally you do not want to edit this file. To put a new font directory
in the configuration, update the /etc/fonts/local.conf file with your local
information. The default location of fonts in
Fontconfig is:
/usr/share/fonts
~/.fonts
Because we have not built XFree86 yet, put the following directory entries
into /etc/fonts/local.conf, inside the fontconfig
tags:
sed -i -e '/^<\/fontconfig>/i\
<dir>/usr/X11R6/lib/X11/fonts/TTF</dir>\
<dir>/usr/X11R6/lib/X11/fonts/Type1</dir>\
<dir>/usr/X11R6/lib/X11/fonts/truetype</dir>' /etc/fonts/local.conf
The Fontconfig program will automatically search the above directories
and all subdirectories for needed fonts.
X also includes an internal (and
older) version of Fontconfig
and unless it is explicitly disabled when building
XFree86, the internal
version is created leaving two slightly incompatible libraries on your system.
It is recommended that you only install one version.