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
|
---|
8 | "https://www.freedesktop.org/software/fontconfig/release/fontconfig-&fontconfig-version;.tar.bz2">
|
---|
9 | <!ENTITY fontconfig-download-ftp " ">
|
---|
10 | <!ENTITY fontconfig-md5sum "36cdea1058ef13cbbfdabe6cb019dc1c">
|
---|
11 | <!ENTITY fontconfig-size "1.6 MB">
|
---|
12 | <!ENTITY fontconfig-buildsize "16 MB (with tests)">
|
---|
13 | <!ENTITY fontconfig-time "0.3 SBU (with tests)">
|
---|
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>
|
---|
34 | The <application>Fontconfig</application> package contains
|
---|
35 | a library and support programs used for configuring and
|
---|
36 | customizing font access.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs10_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&fontconfig-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&fontconfig-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &fontconfig-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &fontconfig-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &fontconfig-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &fontconfig-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 | <!--
|
---|
75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
76 | <itemizedlist spacing="compact">
|
---|
77 | <listitem>
|
---|
78 | <para>
|
---|
79 | Required patch:
|
---|
80 | <ulink url="&patch-root;/fontconfig-&fontconfig-version;-gperf-3.1-1.patch"/>
|
---|
81 | </para>
|
---|
82 | </listitem>
|
---|
83 | </itemizedlist>
|
---|
84 | -->
|
---|
85 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
88 | <para role="required">
|
---|
89 | <xref linkend="freetype2"/>
|
---|
90 | </para>
|
---|
91 |
|
---|
92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
93 | <para role="optional">
|
---|
94 | <xref linkend="json-c"/>,
|
---|
95 | <xref linkend="docbook-utils"/> and
|
---|
96 | <xref linkend="libxml2"/>,
|
---|
97 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <note>
|
---|
101 | <para>
|
---|
102 | If you have <application>DocBook Utils</application> installed and
|
---|
103 | you remove the <parameter>--disable-docs</parameter> parameter from
|
---|
104 | the <command>configure</command> command below, you must have
|
---|
105 | <xref linkend="perl-sgmlspm"/> and <xref linkend="texlive"/> installed
|
---|
106 | also, or the <application>Fontconfig</application> build will fail.
|
---|
107 | </para>
|
---|
108 | </note>
|
---|
109 |
|
---|
110 | <para condition="html" role="usernotes">User Notes:
|
---|
111 | <ulink url='&blfs-wiki;/Fontconfig'/>
|
---|
112 | </para>
|
---|
113 | </sect2>
|
---|
114 |
|
---|
115 | <sect2 role="installation">
|
---|
116 | <title>Installation of Fontconfig</title>
|
---|
117 |
|
---|
118 | <para>
|
---|
119 | Make sure the system regenerates src/fcobjshash.h.
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <screen><userinput>rm -f src/fcobjshash.h</userinput></screen>
|
---|
123 |
|
---|
124 | <para>
|
---|
125 | Install <application>Fontconfig</application> by running the following
|
---|
126 | commands:
|
---|
127 | </para>
|
---|
128 |
|
---|
129 | <screen><userinput>./configure --prefix=/usr \
|
---|
130 | --sysconfdir=/etc \
|
---|
131 | --localstatedir=/var \
|
---|
132 | --disable-docs \
|
---|
133 | --docdir=/usr/share/doc/fontconfig-&fontconfig-version; &&
|
---|
134 | make</userinput></screen>
|
---|
135 |
|
---|
136 | <para>
|
---|
137 | To test the results, issue: <command>make check</command>.
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | If you did not remove the <parameter>--disable-docs</parameter>
|
---|
148 | parameter from the <command>configure</command> command, you can install
|
---|
149 | the pre-generated documentation by using the following commands as the
|
---|
150 | <systemitem class="username">root</systemitem> user:
|
---|
151 | </para>
|
---|
152 |
|
---|
153 | <screen role="root"><userinput>install -v -dm755 \
|
---|
154 | /usr/share/{man/man{1,3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &&
|
---|
155 | install -v -m644 fc-*/*.1 /usr/share/man/man1 &&
|
---|
156 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
157 | install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &&
|
---|
158 | install -v -m644 doc/fontconfig-devel/* \
|
---|
159 | /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &&
|
---|
160 | install -v -m644 doc/*.{pdf,sgml,txt,html} \
|
---|
161 | /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
|
---|
162 |
|
---|
163 | </sect2>
|
---|
164 |
|
---|
165 | <sect2 role="commands">
|
---|
166 | <title>Command Explanations</title>
|
---|
167 |
|
---|
168 | <para>
|
---|
169 | <parameter>--disable-docs</parameter>: This switch avoids building the
|
---|
170 | documentation (the release tarball includes pre-generated
|
---|
171 | documentation).
|
---|
172 | </para>
|
---|
173 |
|
---|
174 | </sect2>
|
---|
175 |
|
---|
176 | <sect2 role="configuration">
|
---|
177 | <title>Configuring Fontconfig</title>
|
---|
178 |
|
---|
179 | <sect3 id="fontconfig-config">
|
---|
180 | <title>Config Files</title>
|
---|
181 |
|
---|
182 | <para>
|
---|
183 | <filename>
|
---|
184 | /etc/fonts/*,
|
---|
185 | /etc/fonts/conf.d/* and
|
---|
186 | /usr/share/fontconfig/conf.avail/*
|
---|
187 | </filename>
|
---|
188 | </para>
|
---|
189 |
|
---|
190 | <indexterm zone="fontconfig fontconfig-config">
|
---|
191 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
192 | </indexterm>
|
---|
193 |
|
---|
194 | <indexterm zone="fontconfig fontconfig-config">
|
---|
195 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
196 | </indexterm>
|
---|
197 |
|
---|
198 | <indexterm zone="fontconfig fontconfig-config">
|
---|
199 | <primary sortas="e-usr-share-fontconfig-conf.avail">/usr/share/fontconfig/conf.avail/*</primary>
|
---|
200 | </indexterm>
|
---|
201 |
|
---|
202 | </sect3>
|
---|
203 |
|
---|
204 | <sect3>
|
---|
205 | <title>Configuration Information</title>
|
---|
206 |
|
---|
207 | <para>
|
---|
208 | The main configuration file for <application>Fontconfig</application> is
|
---|
209 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
|
---|
210 | to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
|
---|
211 | and any files in <filename class="directory">/etc/fonts/conf.d</filename>.
|
---|
212 | To put a new font directory in the configuration, create
|
---|
213 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
214 | local information or add a new file in
|
---|
215 | <filename class="directory">/etc/fonts/conf.d</filename>. The default
|
---|
216 | location of fonts in <application>Fontconfig</application> is:
|
---|
217 | </para>
|
---|
218 |
|
---|
219 | <itemizedlist spacing="compact">
|
---|
220 | <listitem>
|
---|
221 | <para>
|
---|
222 | /usr/share/fonts
|
---|
223 | </para>
|
---|
224 | </listitem>
|
---|
225 | <listitem>
|
---|
226 | <para>
|
---|
227 | ~/.local/share/fonts
|
---|
228 | </para>
|
---|
229 | </listitem>
|
---|
230 | <listitem>
|
---|
231 | <para>
|
---|
232 | ~/.fonts <emphasis>(this is now deprecated, but for the moment
|
---|
233 | it still works)</emphasis>
|
---|
234 | </para>
|
---|
235 | </listitem>
|
---|
236 | </itemizedlist>
|
---|
237 |
|
---|
238 | <para>
|
---|
239 | <application>Fontconfig</application> also ships many example
|
---|
240 | configuration files in the
|
---|
241 | <filename class="directory">/usr/share/fontconfig/conf.avail</filename>
|
---|
242 | directory. Symlinking specific files to
|
---|
243 | <filename class="directory">/etc/fonts/conf.d</filename>
|
---|
244 | will enable them. The default setup is generally good enough for
|
---|
245 | most users. See <filename>/etc/fonts/conf.d/README</filename>
|
---|
246 | for a description of the configuration files.
|
---|
247 | </para>
|
---|
248 |
|
---|
249 | <indexterm zone="fontconfig fontconfig-config">
|
---|
250 | <primary sortas="e-usr-share-fonts">/usr/share/fonts</primary>
|
---|
251 | </indexterm>
|
---|
252 |
|
---|
253 | <indexterm zone="fontconfig fontconfig-config">
|
---|
254 | <primary sortas="e-AA.fonts">~/.fonts</primary>
|
---|
255 | </indexterm>
|
---|
256 |
|
---|
257 | <para>
|
---|
258 | More information about configuring <application>Fontconfig</application>
|
---|
259 | can be found in the user's manual in <ulink
|
---|
260 | url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
|
---|
261 | </para>
|
---|
262 |
|
---|
263 | </sect3>
|
---|
264 |
|
---|
265 | </sect2>
|
---|
266 |
|
---|
267 | <sect2 role="content">
|
---|
268 | <title>Contents</title>
|
---|
269 |
|
---|
270 | <segmentedlist>
|
---|
271 | <segtitle>Installed Programs</segtitle>
|
---|
272 | <segtitle>Installed Library</segtitle>
|
---|
273 | <segtitle>Installed Directories</segtitle>
|
---|
274 |
|
---|
275 | <seglistitem>
|
---|
276 | <seg>
|
---|
277 | fc-cache, fc-cat, fc-conflist, fc-list, fc-match, fc-pattern,
|
---|
278 | fc-query, fc-scan, and fc-validate
|
---|
279 | </seg>
|
---|
280 | <seg>
|
---|
281 | libfontconfig.so
|
---|
282 | </seg>
|
---|
283 | <seg>
|
---|
284 | /etc/fonts,
|
---|
285 | /usr/include/fontconfig,
|
---|
286 | /usr/share/doc/fontconfig-&fontconfig-version;,
|
---|
287 | /usr/share/fontconfig,
|
---|
288 | /usr/share/xml/fontconfig, and
|
---|
289 | /var/cache/fontconfig
|
---|
290 | </seg>
|
---|
291 | </seglistitem>
|
---|
292 | </segmentedlist>
|
---|
293 |
|
---|
294 | <variablelist>
|
---|
295 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
296 | <?dbfo list-presentation="list"?>
|
---|
297 | <?dbhtml list-presentation="table"?>
|
---|
298 |
|
---|
299 | <varlistentry id="fc-cache">
|
---|
300 | <term><command>fc-cache</command></term>
|
---|
301 | <listitem>
|
---|
302 | <para>
|
---|
303 | is used to create font information caches.
|
---|
304 | </para>
|
---|
305 | <indexterm zone="fontconfig fc-cache">
|
---|
306 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
307 | </indexterm>
|
---|
308 | </listitem>
|
---|
309 | </varlistentry>
|
---|
310 |
|
---|
311 | <varlistentry id="fc-cat">
|
---|
312 | <term><command>fc-cat</command></term>
|
---|
313 | <listitem>
|
---|
314 | <para>
|
---|
315 | is used to read font information caches.
|
---|
316 | </para>
|
---|
317 | <indexterm zone="fontconfig fc-cat">
|
---|
318 | <primary sortas="b-fc-cat">fc-cat</primary>
|
---|
319 | </indexterm>
|
---|
320 | </listitem>
|
---|
321 | </varlistentry>
|
---|
322 |
|
---|
323 | <varlistentry id="fc-conflist">
|
---|
324 | <term><command>fc-conflist</command></term>
|
---|
325 | <listitem>
|
---|
326 | <para>
|
---|
327 | shows the ruleset files' information on the system.
|
---|
328 | </para>
|
---|
329 | <indexterm zone="fontconfig fc-conflist">
|
---|
330 | <primary sortas="b-fc-conflist">fc-conflist</primary>
|
---|
331 | </indexterm>
|
---|
332 | </listitem>
|
---|
333 | </varlistentry>
|
---|
334 |
|
---|
335 | <varlistentry id="fc-list">
|
---|
336 | <term><command>fc-list</command></term>
|
---|
337 | <listitem>
|
---|
338 | <para>
|
---|
339 | is used to create font lists.
|
---|
340 | </para>
|
---|
341 | <indexterm zone="fontconfig fc-list">
|
---|
342 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
343 | </indexterm>
|
---|
344 | </listitem>
|
---|
345 | </varlistentry>
|
---|
346 |
|
---|
347 | <varlistentry id="fc-match">
|
---|
348 | <term><command>fc-match</command></term>
|
---|
349 | <listitem>
|
---|
350 | <para>
|
---|
351 | is used to match available fonts, or find fonts that match
|
---|
352 | a given pattern.
|
---|
353 | </para>
|
---|
354 | <indexterm zone="fontconfig fc-match">
|
---|
355 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
356 | </indexterm>
|
---|
357 | </listitem>
|
---|
358 | </varlistentry>
|
---|
359 |
|
---|
360 | <varlistentry id="fc-pattern">
|
---|
361 | <term><command>fc-pattern</command></term>
|
---|
362 | <listitem>
|
---|
363 | <para>
|
---|
364 | is used to parse pattern (empty pattern by default) and show
|
---|
365 | the parsed result.
|
---|
366 | </para>
|
---|
367 | <indexterm zone="fontconfig fc-pattern">
|
---|
368 | <primary sortas="b-fc-pattern">fc-pattern</primary>
|
---|
369 | </indexterm>
|
---|
370 | </listitem>
|
---|
371 | </varlistentry>
|
---|
372 |
|
---|
373 | <varlistentry id="fc-query">
|
---|
374 | <term><command>fc-query</command></term>
|
---|
375 | <listitem>
|
---|
376 | <para>
|
---|
377 | is used to query fonts files and print resulting patterns.
|
---|
378 | </para>
|
---|
379 | <indexterm zone="fontconfig fc-query">
|
---|
380 | <primary sortas="b-fc-query">fc-query</primary>
|
---|
381 | </indexterm>
|
---|
382 | </listitem>
|
---|
383 | </varlistentry>
|
---|
384 |
|
---|
385 | <varlistentry id="fc-scan">
|
---|
386 | <term><command>fc-scan</command></term>
|
---|
387 | <listitem>
|
---|
388 | <para>
|
---|
389 | is used to scan font files and directories, and print resulting
|
---|
390 | patterns.
|
---|
391 | </para>
|
---|
392 | <indexterm zone="fontconfig fc-scan">
|
---|
393 | <primary sortas="b-fc-scan">fc-scan</primary>
|
---|
394 | </indexterm>
|
---|
395 | </listitem>
|
---|
396 | </varlistentry>
|
---|
397 |
|
---|
398 | <varlistentry id="fc-validate">
|
---|
399 | <term><command>fc-validate</command></term>
|
---|
400 | <listitem>
|
---|
401 | <para>
|
---|
402 | is used to validate font files.
|
---|
403 | </para>
|
---|
404 | <indexterm zone="fontconfig fc-validate">
|
---|
405 | <primary sortas="b-fc-validate">fc-validate</primary>
|
---|
406 | </indexterm>
|
---|
407 | </listitem>
|
---|
408 | </varlistentry>
|
---|
409 |
|
---|
410 | <varlistentry id="libfontconfig">
|
---|
411 | <term><filename class="libraryfile">libfontconfig.so</filename></term>
|
---|
412 | <listitem>
|
---|
413 | <para>
|
---|
414 | contains functions used by the <application>Fontconfig</application>
|
---|
415 | programs and also by other programs to configure or customize font
|
---|
416 | access.
|
---|
417 | </para>
|
---|
418 | <indexterm zone="fontconfig libfontconfig">
|
---|
419 | <primary sortas="c-libfontconfig">libfontconfig.so</primary>
|
---|
420 | </indexterm>
|
---|
421 | </listitem>
|
---|
422 | </varlistentry>
|
---|
423 |
|
---|
424 | </variablelist>
|
---|
425 |
|
---|
426 | </sect2>
|
---|
427 |
|
---|
428 | </sect1>
|
---|