1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY fontconfig-download-http "http://fontconfig.org/release/fontconfig-&fontconfig-version;.tar.gz">
|
---|
8 | <!-- <!ENTITY fontconfig-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/fontconfig-&fontconfig-version;.tar.gz"> -->
|
---|
9 | <!ENTITY fontconfig-download-ftp " ">
|
---|
10 | <!ENTITY fontconfig-md5sum "7354f9f125ea78a8f2851cb9c31d4866">
|
---|
11 | <!ENTITY fontconfig-size "942 KB">
|
---|
12 | <!ENTITY fontconfig-buildsize "13.0 MB">
|
---|
13 | <!ENTITY fontconfig-time "0.2 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
|
---|
17 | <?dbhtml filename="fontconfig.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Fontconfig-&fontconfig-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="fontconfig">
|
---|
27 | <primary sortas="a-Fontconfig">Fontconfig</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Fontconfig</title>
|
---|
32 |
|
---|
33 | <para>The <application>Fontconfig</application> package is a library
|
---|
34 | for configuring and customizing font access.</para>
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download MD5 sum: &fontconfig-md5sum;</para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download size: &fontconfig-size;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Estimated disk space required: &fontconfig-buildsize;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated build time: &fontconfig-time;</para>
|
---|
55 | </listitem>
|
---|
56 | </itemizedlist>
|
---|
57 |
|
---|
58 | <note>
|
---|
59 | <para>The numbering system of <application>Fontconfig</application> is
|
---|
60 | unusual. The beta versions of the package are numbered with a 9x in the last
|
---|
61 | portion of the release number. This means that 2.3.90 is a beta release and
|
---|
62 | the most current release is of the form &fontconfig-version;</para>
|
---|
63 | </note>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
68 | <para><xref linkend="freetype2"/> and <xref linkend="expat"/></para>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
71 | <para><xref linkend="docbook-utils"/></para>
|
---|
72 |
|
---|
73 | <note>
|
---|
74 | <para>If you have <application>DocBook-utils</application> installed
|
---|
75 | and you remove the <parameter>--disable-docs</parameter> parameter from
|
---|
76 | the <command>configure</command> command below, you must have
|
---|
77 | <xref linkend="perl-sgmlspm"/> and <xref linkend="jadetex"/> installed
|
---|
78 | also, or the <application>Fontconfig</application> build will fail.</para>
|
---|
79 | </note>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="installation">
|
---|
84 | <title>Installation of Fontconfig</title>
|
---|
85 |
|
---|
86 | <para>Install <application>Fontconfig</application> by running the following
|
---|
87 | commands:</para>
|
---|
88 |
|
---|
89 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc --disable-docs &&
|
---|
90 | make</userinput></screen>
|
---|
91 |
|
---|
92 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
93 |
|
---|
94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
95 |
|
---|
96 | <screen role="root"><userinput>make install &&
|
---|
97 | install -v -m755 -d /usr/share/doc/fontconfig/fontconfig-devel &&
|
---|
98 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
99 | install -v -m644 doc/*.5 /usr/share/man/man5 &&
|
---|
100 | install -v -m644 doc/*.{html,pdf,txt} /usr/share/doc/fontconfig &&
|
---|
101 | install -v -m644 doc/fontconfig-devel/* \
|
---|
102 | /usr/share/doc/fontconfig/fontconfig-devel</userinput></screen>
|
---|
103 |
|
---|
104 | </sect2>
|
---|
105 |
|
---|
106 | <sect2 role="commands">
|
---|
107 | <title>Command Explanations</title>
|
---|
108 |
|
---|
109 | <para><parameter>--disable-docs</parameter>: This switch avoids building
|
---|
110 | the documentation (the release tarball includes pre-generated
|
---|
111 | documentation).</para>
|
---|
112 |
|
---|
113 | <!-- If you wish to build the documentation using
|
---|
114 | <application>DocBook-utils</application>, you may need to remove the
|
---|
115 | <application>OpenSP</application> catalog definitions from the system
|
---|
116 | SGML catalogs. Use the following command before building
|
---|
117 | the package to accomplish this:</para>
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>sed -i.orig \
|
---|
120 | -e "\%CATALOG /etc/sgml/OpenSP-1.5.1.cat%d" \
|
---|
121 | /etc/sgml/catalog \
|
---|
122 | /etc/sgml/sgml-docbook.cat</userinput></screen> -->
|
---|
123 |
|
---|
124 | </sect2>
|
---|
125 |
|
---|
126 | <sect2 role="configuration">
|
---|
127 | <title>Configuring Fontconfig</title>
|
---|
128 |
|
---|
129 | <sect3 id="fontconfig-config">
|
---|
130 | <title>Config Files</title>
|
---|
131 |
|
---|
132 | <para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
|
---|
133 |
|
---|
134 | <indexterm zone="fontconfig fontconfig-config">
|
---|
135 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
136 | </indexterm>
|
---|
137 |
|
---|
138 | <indexterm zone="fontconfig fontconfig-config">
|
---|
139 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
140 | </indexterm>
|
---|
141 |
|
---|
142 | </sect3>
|
---|
143 |
|
---|
144 | <sect3>
|
---|
145 | <title>Configuration Information</title>
|
---|
146 |
|
---|
147 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
148 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
|
---|
149 | this file. To put a new font directory in the configuration, create (or
|
---|
150 | update) the <filename>/etc/fonts/local.conf</filename> file with your local
|
---|
151 | information. The default location of fonts in
|
---|
152 | <application>Fontconfig</application> is:</para>
|
---|
153 |
|
---|
154 | <itemizedlist spacing='compact'>
|
---|
155 | <listitem>
|
---|
156 | <para>/usr/share/fonts</para>
|
---|
157 | </listitem>
|
---|
158 | <listitem>
|
---|
159 | <para>~/.fonts</para>
|
---|
160 | </listitem>
|
---|
161 | </itemizedlist>
|
---|
162 |
|
---|
163 | <indexterm zone="fontconfig fontconfig-config">
|
---|
164 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
165 | </indexterm>
|
---|
166 |
|
---|
167 | <indexterm zone="fontconfig fontconfig-config">
|
---|
168 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
169 | </indexterm>
|
---|
170 |
|
---|
171 | <note>
|
---|
172 | <para><application>X</application> also includes an internal (and
|
---|
173 | older) version of <application>Fontconfig</application> and unless it is
|
---|
174 | explicitly disabled when building <application>Xorg</application> or
|
---|
175 | <application>XFree86</application>, the internal version is created leaving
|
---|
176 | two slightly incompatible libraries on your system. It is recommended that
|
---|
177 | you only install one version.</para>
|
---|
178 | </note>
|
---|
179 |
|
---|
180 | </sect3>
|
---|
181 |
|
---|
182 | </sect2>
|
---|
183 |
|
---|
184 | <sect2 role="content">
|
---|
185 | <title>Contents</title>
|
---|
186 |
|
---|
187 | <segmentedlist>
|
---|
188 | <segtitle>Installed Programs</segtitle>
|
---|
189 | <segtitle>Installed Library</segtitle>
|
---|
190 | <segtitle>Installed Directories</segtitle>
|
---|
191 |
|
---|
192 | <seglistitem>
|
---|
193 | <seg>fc-cache, fc-list, and fc-match</seg>
|
---|
194 | <seg>libfontconfig.[so,a]</seg>
|
---|
195 | <seg>/etc/fonts and /usr/include/fontconfig</seg>
|
---|
196 | </seglistitem>
|
---|
197 | </segmentedlist>
|
---|
198 |
|
---|
199 | <variablelist>
|
---|
200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
201 | <?dbfo list-presentation="list"?>
|
---|
202 | <?dbhtml list-presentation="table"?>
|
---|
203 |
|
---|
204 | <varlistentry id="fc-cache">
|
---|
205 | <term><command>fc-cache</command></term>
|
---|
206 | <listitem>
|
---|
207 | <para>is used to create font information caches.</para>
|
---|
208 | <indexterm zone="fontconfig fc-cache">
|
---|
209 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
210 | </indexterm>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry>
|
---|
213 |
|
---|
214 | <varlistentry id="fc-list">
|
---|
215 | <term><command>fc-list</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>is used to create font lists.</para>
|
---|
218 | <indexterm zone="fontconfig fc-list">
|
---|
219 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
220 | </indexterm>
|
---|
221 | </listitem>
|
---|
222 | </varlistentry>
|
---|
223 |
|
---|
224 | <varlistentry id="fc-match">
|
---|
225 | <term><command>fc-match</command></term>
|
---|
226 | <listitem>
|
---|
227 | <para>is used to match available fonts, or find fonts that match
|
---|
228 | a given pattern.</para>
|
---|
229 | <indexterm zone="fontconfig fc-match">
|
---|
230 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
231 | </indexterm>
|
---|
232 | </listitem>
|
---|
233 | </varlistentry>
|
---|
234 |
|
---|
235 | <varlistentry id="libfontconfig">
|
---|
236 | <term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
|
---|
237 | <listitem>
|
---|
238 | <para>contains functions used by the
|
---|
239 | <application>Fontconfig</application> programs and also by other
|
---|
240 | programs to configure or customize font access.</para>
|
---|
241 | <indexterm zone="fontconfig libfontconfig">
|
---|
242 | <primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
|
---|
243 | </indexterm>
|
---|
244 | </listitem>
|
---|
245 | </varlistentry>
|
---|
246 |
|
---|
247 | </variablelist>
|
---|
248 |
|
---|
249 | </sect2>
|
---|
250 |
|
---|
251 | </sect1>
|
---|