2003-08-16 12:33:53 +08:00
|
|
|
<sect2>
|
2003-10-02 23:28:50 +08:00
|
|
|
<title>Configuring <application>Fontconfig</application></title>
|
2003-08-16 12:33:53 +08:00
|
|
|
|
2004-02-08 10:47:04 +08:00
|
|
|
<sect3><title>Config files</title>
|
|
|
|
<para><filename>/etc/fonts/*</filename></para>
|
|
|
|
</sect3>
|
|
|
|
|
2003-08-16 12:33:53 +08:00
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<para>The configuration file for <application>Fontconfig</application> 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
|
2004-02-08 10:47:04 +08:00
|
|
|
in the configuration, update the <filename>/etc/fonts/local.conf</filename> file with your local
|
2003-10-02 23:28:50 +08:00
|
|
|
information. The default location of fonts in
|
|
|
|
<application>Fontconfig</application> is:</para>
|
2003-08-16 12:33:53 +08:00
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem><para>/usr/share/fonts</para></listitem>
|
|
|
|
<listitem><para>~/.fonts</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<para>Because we have not built <application>XFree86</application> yet, put the following directory entries
|
2003-11-13 15:58:44 +08:00
|
|
|
into <filename>/etc/fonts/local.conf</filename>, inside the fontconfig
|
|
|
|
tags:</para>
|
2004-02-08 10:47:04 +08:00
|
|
|
|
|
|
|
<screen><userinput><command>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>' local.conf</command></userinput></screen>
|
2003-08-17 11:06:32 +08:00
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<para>The <application>Fontconfig</application> program will automatically search the above directories
|
2003-08-16 12:33:53 +08:00
|
|
|
and all subdirectories for needed fonts.</para>
|
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<note><para><application>X</application> also includes an internal (and
|
|
|
|
older) version of <application>Fontconfig</application>
|
2003-10-04 00:43:11 +08:00
|
|
|
and unless it is explicitly disabled when building
|
2003-10-02 23:28:50 +08:00
|
|
|
<application>XFree86</application>, the internal
|
2003-08-16 12:33:53 +08:00
|
|
|
version is created leaving two slightly incompatible libraries on your system.
|
|
|
|
It is recommended that you only install one version.</para></note>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|