source: general/graphlib/fontconfig.xml@ 9d7a550

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9d7a550 was 005edd5, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Fontconfig: add discovered optional dependency on json-c

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

  • Property mode set to 100644
File size: 13.3 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[f3429309]7 <!ENTITY fontconfig-download-http
[8dfc5c3]8 "https://www.freedesktop.org/software/fontconfig/release/fontconfig-&fontconfig-version;.tar.bz2">
[2a05c87]9 <!ENTITY fontconfig-download-ftp " ">
[11fd6537]10 <!ENTITY fontconfig-md5sum "36cdea1058ef13cbbfdabe6cb019dc1c">
[49df687a]11 <!ENTITY fontconfig-size "1.6 MB">
[11fd6537]12 <!ENTITY fontconfig-buildsize "16 MB (with tests)">
[49df687a]13 <!ENTITY fontconfig-time "0.3 SBU (with tests)">
[52d29f7]14]>
15
[b9ad2f9a]16<sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
[51a70dfd]17 <?dbhtml filename="fontconfig.html"?>
[481b3e8]18
[51a70dfd]19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
[481b3e8]23
[51a70dfd]24 <title>Fontconfig-&fontconfig-version;</title>
[481b3e8]25
[51a70dfd]26 <indexterm zone="fontconfig">
27 <primary sortas="a-Fontconfig">Fontconfig</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Fontconfig</title>
[481b3e8]32
[70c0ef4]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>
[481b3e8]38
[1f6d0c13]39 &lfs10_checked;
[482477c]40
[51a70dfd]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[70c0ef4]44 <para>
45 Download (HTTP): <ulink url="&fontconfig-download-http;"/>
46 </para>
[51a70dfd]47 </listitem>
48 <listitem>
[70c0ef4]49 <para>
50 Download (FTP): <ulink url="&fontconfig-download-ftp;"/>
51 </para>
[51a70dfd]52 </listitem>
53 <listitem>
[70c0ef4]54 <para>
55 Download MD5 sum: &fontconfig-md5sum;
56 </para>
[51a70dfd]57 </listitem>
58 <listitem>
[70c0ef4]59 <para>
60 Download size: &fontconfig-size;
61 </para>
[51a70dfd]62 </listitem>
63 <listitem>
[70c0ef4]64 <para>
65 Estimated disk space required: &fontconfig-buildsize;
66 </para>
[51a70dfd]67 </listitem>
68 <listitem>
[70c0ef4]69 <para>
70 Estimated build time: &fontconfig-time;
71 </para>
[51a70dfd]72 </listitem>
73 </itemizedlist>
[0a5b96e7]74<!--
[f9ae69b]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>
[0a5b96e7]84-->
[51a70dfd]85 <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
[481b3e8]86
[51a70dfd]87 <bridgehead renderas="sect4">Required</bridgehead>
[70c0ef4]88 <para role="required">
[f3429309]89 <xref linkend="freetype2"/>
[70c0ef4]90 </para>
[481b3e8]91
[51a70dfd]92 <bridgehead renderas="sect4">Optional</bridgehead>
[70c0ef4]93 <para role="optional">
[005edd5]94 <xref linkend="json-c"/>,
[56605b9]95 <xref linkend="docbook-utils"/> and
[d2da67c]96 <xref linkend="libxml2"/>,
97 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
[70c0ef4]98 </para>
[51a70dfd]99
100 <note>
[70c0ef4]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
[4392a40]105 <xref linkend="perl-sgmlspm"/> and <xref linkend="texlive"/> installed
[755e97c]106 also, or the <application>Fontconfig</application> build will fail.
[70c0ef4]107 </para>
[51a70dfd]108 </note>
[481b3e8]109
[1663c2b5]110 <para condition="html" role="usernotes">User Notes:
[70c0ef4]111 <ulink url='&blfs-wiki;/Fontconfig'/>
112 </para>
[51a70dfd]113 </sect2>
[481b3e8]114
[51a70dfd]115 <sect2 role="installation">
116 <title>Installation of Fontconfig</title>
117
[f9ae69b]118 <para>
[14bf879]119 Make sure the system regenerates src/fcobjshash.h.
[f9ae69b]120 </para>
121
[14bf879]122<screen><userinput>rm -f src/fcobjshash.h</userinput></screen>
[f9ae69b]123
[70c0ef4]124 <para>
125 Install <application>Fontconfig</application> by running the following
126 commands:
127 </para>
[51a70dfd]128
[14bf879]129<screen><userinput>./configure --prefix=/usr \
[ebcf077e]130 --sysconfdir=/etc \
[2c70bd1]131 --localstatedir=/var \
[ebcf077e]132 --disable-docs \
[2f0f7a0]133 --docdir=/usr/share/doc/fontconfig-&fontconfig-version; &amp;&amp;
[51a70dfd]134make</userinput></screen>
[481b3e8]135
[70c0ef4]136 <para>
137 To test the results, issue: <command>make check</command>.
138 </para>
[481b3e8]139
[70c0ef4]140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
[481b3e8]143
[18b6c56]144<screen role="root"><userinput>make install</userinput></screen>
[4774a15e]145
[70c0ef4]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>
[2c70bd1]152
[efdbb27]153<screen role="root"><userinput>install -v -dm755 \
[b7a300f7]154 /usr/share/{man/man{1,3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &amp;&amp;
[b29c7705]155install -v -m644 fc-*/*.1 /usr/share/man/man1 &amp;&amp;
156install -v -m644 doc/*.3 /usr/share/man/man3 &amp;&amp;
157install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &amp;&amp;
[2c70bd1]158install -v -m644 doc/fontconfig-devel/* \
[b29c7705]159 /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &amp;&amp;
[2c70bd1]160install -v -m644 doc/*.{pdf,sgml,txt,html} \
[b29c7705]161 /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
[2c70bd1]162
[51a70dfd]163 </sect2>
[481b3e8]164
[51a70dfd]165 <sect2 role="commands">
166 <title>Command Explanations</title>
167
[70c0ef4]168 <para>
[f1d7196]169 <parameter>--disable-docs</parameter>: This switch avoids building the
[70c0ef4]170 documentation (the release tarball includes pre-generated
171 documentation).
172 </para>
173
[51a70dfd]174 </sect2>
[481b3e8]175
[51a70dfd]176 <sect2 role="configuration">
177 <title>Configuring Fontconfig</title>
178
179 <sect3 id="fontconfig-config">
180 <title>Config Files</title>
[481b3e8]181
[70c0ef4]182 <para>
183 <filename>
184 /etc/fonts/*,
185 /etc/fonts/conf.d/* and
186 /usr/share/fontconfig/conf.avail/*
187 </filename>
188 </para>
[481b3e8]189
[51a70dfd]190 <indexterm zone="fontconfig fontconfig-config">
191 <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
192 </indexterm>
[481b3e8]193
[51a70dfd]194 <indexterm zone="fontconfig fontconfig-config">
195 <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
196 </indexterm>
[481b3e8]197
[fdf8b786]198 <indexterm zone="fontconfig fontconfig-config">
[70c0ef4]199 <primary sortas="e-usr-share-fontconfig-conf.avail">/usr/share/fontconfig/conf.avail/*</primary>
[fdf8b786]200 </indexterm>
201
[51a70dfd]202 </sect3>
203
204 <sect3>
205 <title>Configuration Information</title>
[481b3e8]206
[70c0ef4]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">
[51a70dfd]220 <listitem>
[09f0998]221 <para>
222 /usr/share/fonts
223 </para>
[51a70dfd]224 </listitem>
225 <listitem>
[09f0998]226 <para>
227 ~/.local/share/fonts
228 </para>
[e180a646]229 </listitem>
230 <listitem>
[09f0998]231 <para>
232 ~/.fonts <emphasis>(this is now deprecated, but for the moment
233 it still works)</emphasis>
234 </para>
[51a70dfd]235 </listitem>
236 </itemizedlist>
[481b3e8]237
[70c0ef4]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>
[fdf8b786]248
[51a70dfd]249 <indexterm zone="fontconfig fontconfig-config">
[b960e3ec]250 <primary sortas="e-usr-share-fonts">/usr/share/fonts</primary>
[51a70dfd]251 </indexterm>
[481b3e8]252
[51a70dfd]253 <indexterm zone="fontconfig fontconfig-config">
[b960e3ec]254 <primary sortas="e-AA.fonts">~/.fonts</primary>
[51a70dfd]255 </indexterm>
[481b3e8]256
[70c0ef4]257 <para>
258 More information about configuring <application>Fontconfig</application>
259 can be found in the user's manual in <ulink
[b7a300f7]260 url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
[fdf8b786]261 </para>
[e4e85b2]262
[51a70dfd]263 </sect3>
[481b3e8]264
[51a70dfd]265 </sect2>
[481b3e8]266
[51a70dfd]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>
[481b3e8]274
[51a70dfd]275 <seglistitem>
[70c0ef4]276 <seg>
[49df687a]277 fc-cache, fc-cat, fc-conflist, fc-list, fc-match, fc-pattern,
278 fc-query, fc-scan, and fc-validate
[70c0ef4]279 </seg>
280 <seg>
281 libfontconfig.so
282 </seg>
283 <seg>
284 /etc/fonts,
285 /usr/include/fontconfig,
[eb57769]286 /usr/share/doc/fontconfig-&fontconfig-version;,
[59feb2c]287 /usr/share/fontconfig,
[29efd929]288 /usr/share/xml/fontconfig, and
[70c0ef4]289 /var/cache/fontconfig
290 </seg>
[51a70dfd]291 </seglistitem>
292 </segmentedlist>
[481b3e8]293
[51a70dfd]294 <variablelist>
295 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
296 <?dbfo list-presentation="list"?>
297 <?dbhtml list-presentation="table"?>
[481b3e8]298
[51a70dfd]299 <varlistentry id="fc-cache">
300 <term><command>fc-cache</command></term>
301 <listitem>
[70c0ef4]302 <para>
303 is used to create font information caches.
304 </para>
[51a70dfd]305 <indexterm zone="fontconfig fc-cache">
306 <primary sortas="b-fc-cache">fc-cache</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
[481b3e8]310
[fdf8b786]311 <varlistentry id="fc-cat">
312 <term><command>fc-cat</command></term>
313 <listitem>
[70c0ef4]314 <para>
315 is used to read font information caches.
316 </para>
[fdf8b786]317 <indexterm zone="fontconfig fc-cat">
318 <primary sortas="b-fc-cat">fc-cat</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
[49df687a]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
[51a70dfd]335 <varlistentry id="fc-list">
336 <term><command>fc-list</command></term>
337 <listitem>
[70c0ef4]338 <para>
339 is used to create font lists.
340 </para>
[51a70dfd]341 <indexterm zone="fontconfig fc-list">
342 <primary sortas="b-fc-list">fc-list</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
[481b3e8]346
[51a70dfd]347 <varlistentry id="fc-match">
348 <term><command>fc-match</command></term>
349 <listitem>
[70c0ef4]350 <para>
351 is used to match available fonts, or find fonts that match
352 a given pattern.
353 </para>
[51a70dfd]354 <indexterm zone="fontconfig fc-match">
355 <primary sortas="b-fc-match">fc-match</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
[481b3e8]359
[eb57769]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
[78fe2b4]373 <varlistentry id="fc-query">
374 <term><command>fc-query</command></term>
375 <listitem>
[70c0ef4]376 <para>
377 is used to query fonts files and print resulting patterns.
[78fe2b4]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>
[70c0ef4]388 <para>
389 is used to scan font files and directories, and print resulting
390 patterns.
391 </para>
[78fe2b4]392 <indexterm zone="fontconfig fc-scan">
393 <primary sortas="b-fc-scan">fc-scan</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
[eb57769]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
[51a70dfd]410 <varlistentry id="libfontconfig">
[efdbb27]411 <term><filename class="libraryfile">libfontconfig.so</filename></term>
[51a70dfd]412 <listitem>
[70c0ef4]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>
[51a70dfd]418 <indexterm zone="fontconfig libfontconfig">
[70c0ef4]419 <primary sortas="c-libfontconfig">libfontconfig.so</primary>
[51a70dfd]420 </indexterm>
421 </listitem>
422 </varlistentry>
[481b3e8]423
[51a70dfd]424 </variablelist>
425
426 </sect2>
[8de6b187]427
428</sect1>
Note: See TracBrowser for help on using the repository browser.