source: general/graphlib/fontconfig.xml@ b7a300f7

10.0 10.1 11.0 11.1 11.2 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus perl-modules plabs/python-mods qt5new trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since b7a300f7 was b7a300f7, checked in by Pierre Labastie <pieere@…>, 5 years ago

Updates:

  • mesa-17.2.1
  • llvm-5.0.0
  • fontconfig-2.12.6
  • joe-4.5
  • krb5-1.15.2
  • git-2.14.2
  • enchant-2.1.2
  • php-7.1.10
  • add a file setting GIO_USE_TLS in the configuration section of glib-networking

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19289 af4574ff-66df-0310-9fd7-8a98e5e911e0

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