1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY fontconfig-download-http "http://freedesktop.org/~fontconfig/release/fontconfig-&fontconfig-version;.tar.gz">
|
---|
8 | <!ENTITY fontconfig-download-ftp "ftp://ftp.us.sinuspl.net/pub/src/fontconfig-&fontconfig-version;.tar.gz">
|
---|
9 | <!ENTITY fontconfig-size "727 KB">
|
---|
10 | <!ENTITY fontconfig-buildsize "11 MB">
|
---|
11 | <!ENTITY fontconfig-time "0.18 SBU">
|
---|
12 |
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
|
---|
16 | <?dbhtml filename="fontconfig.html"?>
|
---|
17 | <title>Fontconfig-&fontconfig-version;</title>
|
---|
18 |
|
---|
19 | <sect2>
|
---|
20 | <title>Introduction to <application>Fontconfig</application></title>
|
---|
21 |
|
---|
22 | <para>The <application>Fontconfig</application> package is a library
|
---|
23 | for configuring and customizing font access.</para>
|
---|
24 |
|
---|
25 | <sect3><title>Package information</title>
|
---|
26 | <itemizedlist spacing='compact'>
|
---|
27 | <listitem><para>Download (HTTP): <ulink
|
---|
28 | url="&fontconfig-download-http;"/></para></listitem>
|
---|
29 | <listitem><para>Download (FTP): <ulink
|
---|
30 | url="&fontconfig-download-ftp;"/></para></listitem>
|
---|
31 | <listitem><para>Download size: &fontconfig-size;</para></listitem>
|
---|
32 | <listitem><para>Estimated Disk space required:
|
---|
33 | &fontconfig-buildsize;</para></listitem>
|
---|
34 | <listitem><para>Estimated build time:
|
---|
35 | &fontconfig-time;</para></listitem></itemizedlist>
|
---|
36 |
|
---|
37 | <note><para>The numbering system of
|
---|
38 | <application>Fontconfig</application> is unusual. The beta versions of the
|
---|
39 | package are numbered with a 9x in the last portion of the release number. This
|
---|
40 | means that 2.2.90 is a beta release and the most current release is of the
|
---|
41 | form 2.2.1</para></note>
|
---|
42 |
|
---|
43 | </sect3>
|
---|
44 |
|
---|
45 | <sect3><title><application>Fontconfig</application> dependencies</title>
|
---|
46 | <sect4><title>Required</title>
|
---|
47 | <para><xref linkend="freetype2"/> and <xref linkend="expat"/></para></sect4>
|
---|
48 | <sect4><title>Optional</title>
|
---|
49 | <para>
|
---|
50 | <ulink url="http://sources.redhat.com/docbook-tools/">docbook-utils</ulink>
|
---|
51 | </para></sect4>
|
---|
52 | </sect3>
|
---|
53 | </sect2>
|
---|
54 |
|
---|
55 | <sect2>
|
---|
56 | <title>Installation of <application>Fontconfig</application></title>
|
---|
57 |
|
---|
58 | <para>Install <application>Fontconfig</application> by running the following commands:</para>
|
---|
59 |
|
---|
60 | <screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
61 | make &&
|
---|
62 | make install</command></userinput></screen>
|
---|
63 | </sect2>
|
---|
64 |
|
---|
65 | <sect2>
|
---|
66 | <title>Configuring <application>Fontconfig</application></title>
|
---|
67 |
|
---|
68 | <sect3><title>Config files</title>
|
---|
69 | <para><filename>/etc/fonts/*</filename></para>
|
---|
70 | </sect3>
|
---|
71 |
|
---|
72 | <sect3><title>Configuration Information</title>
|
---|
73 |
|
---|
74 | <para>The configuration file for <application>Fontconfig</application> is <filename>/etc/fonts/fonts.conf</filename>.
|
---|
75 | Generally you do not want to edit this file. To put a new font directory
|
---|
76 | in the configuration, update the <filename>/etc/fonts/local.conf</filename> file with your local
|
---|
77 | information. The default location of fonts in
|
---|
78 | <application>Fontconfig</application> is:</para>
|
---|
79 | <itemizedlist spacing='compact'>
|
---|
80 | <listitem><para>/usr/share/fonts</para></listitem>
|
---|
81 | <listitem><para>~/.fonts</para></listitem>
|
---|
82 | </itemizedlist>
|
---|
83 |
|
---|
84 | <para>Because we have not built <application>XFree86</application> yet, put the following directory entries
|
---|
85 | into <filename>/etc/fonts/local.conf</filename>, inside the fontconfig
|
---|
86 | tags:</para>
|
---|
87 |
|
---|
88 | <screen><userinput><command>sed -i -e '/^<\/fontconfig>/i\
|
---|
89 | <dir>/usr/X11R6/lib/X11/fonts/TTF</dir>\
|
---|
90 | <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>\
|
---|
91 | <dir>/usr/X11R6/lib/X11/fonts/truetype</dir>' /etc/fonts/local.conf</command></userinput></screen>
|
---|
92 |
|
---|
93 | <para>The <application>Fontconfig</application> program will automatically search the above directories
|
---|
94 | and all subdirectories for needed fonts.</para>
|
---|
95 |
|
---|
96 | <note><para><application>X</application> also includes an internal (and
|
---|
97 | older) version of <application>Fontconfig</application>
|
---|
98 | and unless it is explicitly disabled when building
|
---|
99 | <application>XFree86</application>, the internal
|
---|
100 | version is created leaving two slightly incompatible libraries on your system.
|
---|
101 | It is recommended that you only install one version.</para></note>
|
---|
102 |
|
---|
103 | </sect3>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2>
|
---|
108 | <title>Contents</title>
|
---|
109 |
|
---|
110 | <para>The <application>Fontconfig</application> package contains the
|
---|
111 | <filename class='libraryfile'>libfontconfig</filename> library,
|
---|
112 | <command>fc-cache</command>, and <command>fc-list</command>.</para>
|
---|
113 |
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 | <sect2><title>Description</title>
|
---|
117 |
|
---|
118 | <sect3><title>fc-cache</title>
|
---|
119 | <para><command>fc-cache</command> is a command to create font information
|
---|
120 | caches.</para></sect3>
|
---|
121 |
|
---|
122 | <sect3><title>fc-list</title>
|
---|
123 | <para><command>fc-list</command> is a command to list fonts.</para></sect3>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | </sect1>
|
---|