2003-08-16 12:33:53 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Configuring fontconfig</title>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
2003-08-17 11:06:32 +08:00
|
|
|
<para>The configuration file for fontconfig is <filename>/etc/fonts/fonts.conf</filename>.
|
2003-08-16 12:33:53 +08:00
|
|
|
Generally you do not want to edit this file. To put a new font directory
|
2003-08-17 11:06:32 +08:00
|
|
|
in the configuration, update the file, <filename>/etc/fonts/local.conf</filename> with your local
|
2003-08-16 12:33:53 +08:00
|
|
|
information. The default location of fonts in fontconfig is:</para>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem><para>/usr/share/fonts</para></listitem>
|
|
|
|
<listitem><para>~/.fonts</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2003-08-17 11:06:32 +08:00
|
|
|
<para>Because we have not built XFree86 yet, put the following directory entries
|
|
|
|
into <filename>/etc/fonts/local.conf</filename>:</para>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem><para><dir>/usr/X11R6/lib/X11/fonts/TTF</dir></para></listitem>
|
|
|
|
<listitem><para><dir>/usr/X11R6/lib/X11/fonts/Type1</dir></para></listitem>
|
|
|
|
<listitem><para><dir>/usr/X11R6/lib/X11/fonts/truetype</dir></para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-08-16 12:33:53 +08:00
|
|
|
<para>The fontconfig program will automatically search the above directories
|
|
|
|
and all subdirectories for needed fonts.</para>
|
|
|
|
|
|
|
|
|
|
|
|
<note><para>X also includes an internal (and older) version of fontconfig
|
|
|
|
and unless it is explictly 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.</para></note>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|