1 | <sect2>
|
---|
2 | <title>Configuring <application>Fontconfig</application></title>
|
---|
3 |
|
---|
4 | <sect3><title>Config files</title>
|
---|
5 | <para><filename>/etc/fonts/*</filename></para>
|
---|
6 | </sect3>
|
---|
7 |
|
---|
8 | <sect3><title>Configuration Information</title>
|
---|
9 |
|
---|
10 | <para>The configuration file for <application>Fontconfig</application> is <filename>/etc/fonts/fonts.conf</filename>.
|
---|
11 | Generally you do not want to edit this file. To put a new font directory
|
---|
12 | in the configuration, update the <filename>/etc/fonts/local.conf</filename> file with your local
|
---|
13 | information. The default location of fonts in
|
---|
14 | <application>Fontconfig</application> is:</para>
|
---|
15 | <itemizedlist spacing='compact'>
|
---|
16 | <listitem><para>/usr/share/fonts</para></listitem>
|
---|
17 | <listitem><para>~/.fonts</para></listitem>
|
---|
18 | </itemizedlist>
|
---|
19 |
|
---|
20 | <para>Because we have not built <application>XFree86</application> yet, put the following directory entries
|
---|
21 | into <filename>/etc/fonts/local.conf</filename>, inside the fontconfig
|
---|
22 | tags:</para>
|
---|
23 |
|
---|
24 | <screen><userinput><command>sed -i -e '/^<\/fontconfig>/i\
|
---|
25 | <dir>/usr/X11R6/lib/X11/fonts/TTF</dir>\
|
---|
26 | <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>\
|
---|
27 | <dir>/usr/X11R6/lib/X11/fonts/truetype</dir>' /etc/fonts/local.conf</command></userinput></screen>
|
---|
28 |
|
---|
29 | <para>The <application>Fontconfig</application> program will automatically search the above directories
|
---|
30 | and all subdirectories for needed fonts.</para>
|
---|
31 |
|
---|
32 | <note><para><application>X</application> also includes an internal (and
|
---|
33 | older) version of <application>Fontconfig</application>
|
---|
34 | and unless it is explicitly disabled when building
|
---|
35 | <application>XFree86</application>, the internal
|
---|
36 | version is created leaving two slightly incompatible libraries on your system.
|
---|
37 | It is recommended that you only install one version.</para></note>
|
---|
38 |
|
---|
39 | </sect3>
|
---|
40 |
|
---|
41 | </sect2>
|
---|