1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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 " ">
|
---|
9 | <!ENTITY fontconfig-md5sum "26c83855ed256b5c032baae032fadc4f">
|
---|
10 | <!ENTITY fontconfig-size "1.7 MB">
|
---|
11 | <!ENTITY fontconfig-buildsize "20 MB">
|
---|
12 | <!ENTITY fontconfig-time "0.3 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
|
---|
16 | <?dbhtml filename="fontconfig.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Fontconfig-&fontconfig-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="fontconfig">
|
---|
26 | <primary sortas="a-Fontconfig">Fontconfig</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Fontconfig</title>
|
---|
31 |
|
---|
32 | <para>The <application>Fontconfig</application> package is a library
|
---|
33 | for configuring and customizing font access.</para>
|
---|
34 |
|
---|
35 | &lfs71_checked;
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
|
---|
41 | </listitem>
|
---|
42 | <listitem>
|
---|
43 | <para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para>Download MD5 sum: &fontconfig-md5sum;</para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download size: &fontconfig-size;</para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Estimated disk space required: &fontconfig-buildsize;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Estimated build time: &fontconfig-time;</para>
|
---|
56 | </listitem>
|
---|
57 | </itemizedlist>
|
---|
58 |
|
---|
59 | <note>
|
---|
60 | <para>The numbering system of <application>Fontconfig</application> is
|
---|
61 | unusual. The beta versions of the package are numbered with a 9x in the
|
---|
62 | last portion of the release number. This means that 2.6.92 is a beta
|
---|
63 | release and the most current release is of the form
|
---|
64 | &fontconfig-version;</para>
|
---|
65 | </note>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
70 | <para role="required"><xref linkend="freetype2"/> and either
|
---|
71 | <xref linkend="expat"/> or <xref linkend="libxml2"/> <!-- (requires
|
---|
72 | <xref linkend="pkgconfig"/>) --> </para>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
75 | <para role="optional"><xref linkend="docbook-utils"/></para>
|
---|
76 |
|
---|
77 | <note>
|
---|
78 | <para>If you have <application>DocBook-utils</application> installed
|
---|
79 | and you remove the <parameter>--disable-docs</parameter> parameter from
|
---|
80 | the <command>configure</command> command below, you must have
|
---|
81 | <xref linkend="perl-sgmlspm"/> installed also, or the
|
---|
82 | <application>Fontconfig</application> build will fail.</para>
|
---|
83 | </note>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">User Notes:
|
---|
86 | <ulink url='&blfs-wiki;/Fontconfig'/></para>
|
---|
87 |
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of Fontconfig</title>
|
---|
92 |
|
---|
93 | <para>Install <application>Fontconfig</application> by running the following
|
---|
94 | commands:</para>
|
---|
95 |
|
---|
96 | <screen><userinput>./configure --prefix=/usr \
|
---|
97 | --sysconfdir=/etc \
|
---|
98 | --localstatedir=/var \
|
---|
99 | --disable-docs \
|
---|
100 | --docdir=/usr/share/doc/fontconfig-&fontconfig-version; &&
|
---|
101 | make</userinput></screen>
|
---|
102 |
|
---|
103 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
104 |
|
---|
105 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
106 |
|
---|
107 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
108 |
|
---|
109 | <para>If you did not remove the <parameter>--disable-docs</parameter>
|
---|
110 | parameter from the <command>configure</command> command, you can install
|
---|
111 | the pre-generated documentation by using the following commands as the
|
---|
112 | <systemitem class="username">root</systemitem> user:</para>
|
---|
113 |
|
---|
114 | <screen role="root"><userinput>install -v -m755 \
|
---|
115 | -d /usr/share/{man/man{3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &&
|
---|
116 | install -v -m644 fc-*/*.1 /usr/share/man/man1 &&
|
---|
117 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
118 | install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &&
|
---|
119 | install -v -m644 doc/fontconfig-devel/* \
|
---|
120 | /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &&
|
---|
121 | install -v -m644 doc/*.{pdf,sgml,txt,html} \
|
---|
122 | /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
|
---|
123 |
|
---|
124 | </sect2>
|
---|
125 |
|
---|
126 | <sect2 role="commands">
|
---|
127 | <title>Command Explanations</title>
|
---|
128 |
|
---|
129 | <para><parameter>--localstatedir=/var</parameter>: This switch places
|
---|
130 | the system font cache files in <filename
|
---|
131 | class='directory'>/var/cache/fontconfig</filename>.</para>
|
---|
132 |
|
---|
133 | <para><parameter>--disable-docs</parameter>: This switch avoids building
|
---|
134 | the documentation (the release tarball includes pre-generated
|
---|
135 | documentation).</para>
|
---|
136 |
|
---|
137 | <para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
|
---|
138 | Though this parameter seems counter-intuitive following the preceding
|
---|
139 | parameter to the <command>configure</command> command, it is used so that
|
---|
140 | if the builder removes the <parameter>--disable-docs</parameter> parameter,
|
---|
141 | the documentation will be installed in a versioned directory name instead
|
---|
142 | of the default
|
---|
143 | <filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
|
---|
144 |
|
---|
145 | </sect2>
|
---|
146 |
|
---|
147 | <sect2 role="configuration">
|
---|
148 | <title>Configuring Fontconfig</title>
|
---|
149 |
|
---|
150 | <sect3 id="fontconfig-config">
|
---|
151 | <title>Config Files</title>
|
---|
152 |
|
---|
153 | <para><filename>/etc/fonts/*, /etc/fonts/conf.avail/*, and
|
---|
154 | /etc/fonts/conf.d/*</filename></para>
|
---|
155 |
|
---|
156 | <indexterm zone="fontconfig fontconfig-config">
|
---|
157 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
158 | </indexterm>
|
---|
159 |
|
---|
160 | <indexterm zone="fontconfig fontconfig-config">
|
---|
161 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
162 | </indexterm>
|
---|
163 |
|
---|
164 | <indexterm zone="fontconfig fontconfig-config">
|
---|
165 | <primary sortas="e-etc-fonts-conf.avail">/etc/fonts/conf.avail/*</primary>
|
---|
166 | </indexterm>
|
---|
167 |
|
---|
168 | </sect3>
|
---|
169 |
|
---|
170 | <sect3>
|
---|
171 | <title>Configuration Information</title>
|
---|
172 |
|
---|
173 | <para>The main configuration file for <application>Fontconfig</application>
|
---|
174 | is <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
|
---|
175 | to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
|
---|
176 | and any files in <filename class='directory'>/etc/fonts/conf.d</filename>.
|
---|
177 | To put a new font directory in the configuration, create
|
---|
178 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
179 | local information or add a new file in
|
---|
180 | <filename class='directory'>/etc/fonts/conf.d</filename>. The default
|
---|
181 | location of fonts in <application>Fontconfig</application> is:</para>
|
---|
182 |
|
---|
183 | <itemizedlist spacing='compact'>
|
---|
184 | <listitem>
|
---|
185 | <para>/usr/share/fonts</para>
|
---|
186 | </listitem>
|
---|
187 | <listitem>
|
---|
188 | <para>~/.fonts</para>
|
---|
189 | </listitem>
|
---|
190 | </itemizedlist>
|
---|
191 |
|
---|
192 | <para><application>Fontconfig</application> also ships many example
|
---|
193 | configuration files in the <filename
|
---|
194 | class='directory'>/etc/fonts/conf.avail</filename> directory. Symlinking
|
---|
195 | to specific files from <filename class='directory'>/etc/fonts/conf.d</filename>
|
---|
196 | will enable them. The default setup is generally good enough for most
|
---|
197 | users. See <filename>/etc/fonts/conf.avail/README</filename> for a
|
---|
198 | description of the configuration files.</para>
|
---|
199 |
|
---|
200 | <indexterm zone="fontconfig fontconfig-config">
|
---|
201 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
202 | </indexterm>
|
---|
203 |
|
---|
204 | <indexterm zone="fontconfig fontconfig-config">
|
---|
205 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
206 | </indexterm>
|
---|
207 |
|
---|
208 | <para>More information about configuring
|
---|
209 | <application>Fontconfig</application> can be found in the user's manual
|
---|
210 | in <ulink
|
---|
211 | url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
|
---|
212 | </para>
|
---|
213 |
|
---|
214 | </sect3>
|
---|
215 |
|
---|
216 | </sect2>
|
---|
217 |
|
---|
218 | <sect2 role="content">
|
---|
219 | <title>Contents</title>
|
---|
220 |
|
---|
221 | <segmentedlist>
|
---|
222 | <segtitle>Installed Programs</segtitle>
|
---|
223 | <segtitle>Installed Library</segtitle>
|
---|
224 | <segtitle>Installed Directories</segtitle>
|
---|
225 |
|
---|
226 | <seglistitem>
|
---|
227 | <seg>fc-cache, fc-cat, fc-list, fc-match, fc-query, and fc-scan</seg>
|
---|
228 | <seg>libfontconfig.{so,a}</seg>
|
---|
229 | <seg>/etc/fonts, /usr/include/fontconfig,
|
---|
230 | /usr/share/doc/fontconfig-&fontconfig-version; and
|
---|
231 | /var/cache/fontconfig</seg>
|
---|
232 | </seglistitem>
|
---|
233 | </segmentedlist>
|
---|
234 |
|
---|
235 | <variablelist>
|
---|
236 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
237 | <?dbfo list-presentation="list"?>
|
---|
238 | <?dbhtml list-presentation="table"?>
|
---|
239 |
|
---|
240 | <varlistentry id="fc-cache">
|
---|
241 | <term><command>fc-cache</command></term>
|
---|
242 | <listitem>
|
---|
243 | <para>is used to create font information caches.</para>
|
---|
244 | <indexterm zone="fontconfig fc-cache">
|
---|
245 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
246 | </indexterm>
|
---|
247 | </listitem>
|
---|
248 | </varlistentry>
|
---|
249 |
|
---|
250 | <varlistentry id="fc-cat">
|
---|
251 | <term><command>fc-cat</command></term>
|
---|
252 | <listitem>
|
---|
253 | <para>is used to read font information caches.</para>
|
---|
254 | <indexterm zone="fontconfig fc-cat">
|
---|
255 | <primary sortas="b-fc-cat">fc-cat</primary>
|
---|
256 | </indexterm>
|
---|
257 | </listitem>
|
---|
258 | </varlistentry>
|
---|
259 |
|
---|
260 | <varlistentry id="fc-list">
|
---|
261 | <term><command>fc-list</command></term>
|
---|
262 | <listitem>
|
---|
263 | <para>is used to create font lists.</para>
|
---|
264 | <indexterm zone="fontconfig fc-list">
|
---|
265 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
266 | </indexterm>
|
---|
267 | </listitem>
|
---|
268 | </varlistentry>
|
---|
269 |
|
---|
270 | <varlistentry id="fc-match">
|
---|
271 | <term><command>fc-match</command></term>
|
---|
272 | <listitem>
|
---|
273 | <para>is used to match available fonts, or find fonts that match
|
---|
274 | a given pattern.</para>
|
---|
275 | <indexterm zone="fontconfig fc-match">
|
---|
276 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
277 | </indexterm>
|
---|
278 | </listitem>
|
---|
279 | </varlistentry>
|
---|
280 |
|
---|
281 | <varlistentry id="fc-query">
|
---|
282 | <term><command>fc-query</command></term>
|
---|
283 | <listitem>
|
---|
284 | <para>is used to query fonts files and print resulting patterns.
|
---|
285 | </para>
|
---|
286 | <indexterm zone="fontconfig fc-query">
|
---|
287 | <primary sortas="b-fc-query">fc-query</primary>
|
---|
288 | </indexterm>
|
---|
289 | </listitem>
|
---|
290 | </varlistentry>
|
---|
291 |
|
---|
292 | <varlistentry id="fc-scan">
|
---|
293 | <term><command>fc-scan</command></term>
|
---|
294 | <listitem>
|
---|
295 | <para>is used to scan font files and directories, and print resulting
|
---|
296 | patterns.</para>
|
---|
297 | <indexterm zone="fontconfig fc-scan">
|
---|
298 | <primary sortas="b-fc-scan">fc-scan</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | <varlistentry id="libfontconfig">
|
---|
304 | <term><filename class='libraryfile'>libfontconfig.{so,a}</filename></term>
|
---|
305 | <listitem>
|
---|
306 | <para>contains functions used by the
|
---|
307 | <application>Fontconfig</application> programs and also by other
|
---|
308 | programs to configure or customize font access.</para>
|
---|
309 | <indexterm zone="fontconfig libfontconfig">
|
---|
310 | <primary sortas="c-libfontconfig">libfontconfig.{so,a}</primary>
|
---|
311 | </indexterm>
|
---|
312 | </listitem>
|
---|
313 | </varlistentry>
|
---|
314 |
|
---|
315 | </variablelist>
|
---|
316 |
|
---|
317 | </sect2>
|
---|
318 |
|
---|
319 | </sect1>
|
---|