glfs/general/graphlib/fontconfig/fontconfig-config.xml

42 lines
1.7 KiB
XML
Raw Normal View History

<sect2>
<title>Configuring <application>Fontconfig</application></title>
<sect3><title>Config files</title>
<para><filename>/etc/fonts/*</filename></para>
</sect3>
<sect3><title>Configuration Information</title>
<para>The configuration file for <application>Fontconfig</application> is <filename>/etc/fonts/fonts.conf</filename>.
Generally you do not want to edit this file. To put a new font directory
in the configuration, update the <filename>/etc/fonts/local.conf</filename> file with your local
information. The default location of fonts in
<application>Fontconfig</application> is:</para>
<itemizedlist spacing='compact'>
<listitem><para>/usr/share/fonts</para></listitem>
<listitem><para>~/.fonts</para></listitem>
</itemizedlist>
<para>Because we have not built <application>XFree86</application> yet, put the following directory entries
into <filename>/etc/fonts/local.conf</filename>, inside the fontconfig
tags:</para>
<screen><userinput><command>sed -i -e '/^&lt;\/fontconfig&gt;/i\
&lt;dir&gt;/usr/X11R6/lib/X11/fonts/TTF&lt;/dir&gt;\
&lt;dir&gt;/usr/X11R6/lib/X11/fonts/Type1&lt;/dir&gt;\
&lt;dir&gt;/usr/X11R6/lib/X11/fonts/truetype&lt;/dir&gt;' local.conf</command></userinput></screen>
<para>The <application>Fontconfig</application> program will automatically search the above directories
and all subdirectories for needed fonts.</para>
<note><para><application>X</application> also includes an internal (and
older) version of <application>Fontconfig</application>
and unless it is explicitly disabled when building
<application>XFree86</application>, 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>