source: general/graphlib/fontconfig.xml@ fc935fb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn 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 fc935fb was 4392a40, checked in by Ken Moffat <ken@…>, 5 years ago

Change all new-perl- items to perl- now that the corresponding items in the old perl-modules.xml are no-longer present.

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

  • Property mode set to 100644
File size: 13.2 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
[796bc663]39 &lfs83_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">
[56605b9]94 <xref linkend="docbook-utils"/> and
[d2da67c]95 <xref linkend="libxml2"/>,
96 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
[70c0ef4]97 </para>
[51a70dfd]98
99 <note>
[70c0ef4]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
[4392a40]104 <xref linkend="perl-sgmlspm"/> and <xref linkend="texlive"/> installed
[755e97c]105 also, or the <application>Fontconfig</application> build will fail.
[70c0ef4]106 </para>
[51a70dfd]107 </note>
[481b3e8]108
[1663c2b5]109 <para condition="html" role="usernotes">User Notes:
[70c0ef4]110 <ulink url='&blfs-wiki;/Fontconfig'/>
111 </para>
[51a70dfd]112 </sect2>
[481b3e8]113
[51a70dfd]114 <sect2 role="installation">
115 <title>Installation of Fontconfig</title>
116
[f9ae69b]117 <para>
[14bf879]118 Make sure the system regenerates src/fcobjshash.h.
[f9ae69b]119 </para>
120
[14bf879]121<screen><userinput>rm -f src/fcobjshash.h</userinput></screen>
[f9ae69b]122
[70c0ef4]123 <para>
124 Install <application>Fontconfig</application> by running the following
125 commands:
126 </para>
[51a70dfd]127
[14bf879]128<screen><userinput>./configure --prefix=/usr \
[ebcf077e]129 --sysconfdir=/etc \
[2c70bd1]130 --localstatedir=/var \
[ebcf077e]131 --disable-docs \
[2f0f7a0]132 --docdir=/usr/share/doc/fontconfig-&fontconfig-version; &amp;&amp;
[51a70dfd]133make</userinput></screen>
[481b3e8]134
[70c0ef4]135 <para>
136 To test the results, issue: <command>make check</command>.
137 </para>
[481b3e8]138
[70c0ef4]139 <para>
140 Now, as the <systemitem class="username">root</systemitem> user:
141 </para>
[481b3e8]142
[18b6c56]143<screen role="root"><userinput>make install</userinput></screen>
[4774a15e]144
[70c0ef4]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>
[2c70bd1]151
[efdbb27]152<screen role="root"><userinput>install -v -dm755 \
[b7a300f7]153 /usr/share/{man/man{1,3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &amp;&amp;
[b29c7705]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;
[2c70bd1]157install -v -m644 doc/fontconfig-devel/* \
[b29c7705]158 /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &amp;&amp;
[2c70bd1]159install -v -m644 doc/*.{pdf,sgml,txt,html} \
[b29c7705]160 /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
[2c70bd1]161
[51a70dfd]162 </sect2>
[481b3e8]163
[51a70dfd]164 <sect2 role="commands">
165 <title>Command Explanations</title>
166
[70c0ef4]167 <para>
[f1d7196]168 <parameter>--disable-docs</parameter>: This switch avoids building the
[70c0ef4]169 documentation (the release tarball includes pre-generated
170 documentation).
171 </para>
172
[51a70dfd]173 </sect2>
[481b3e8]174
[51a70dfd]175 <sect2 role="configuration">
176 <title>Configuring Fontconfig</title>
177
178 <sect3 id="fontconfig-config">
179 <title>Config Files</title>
[481b3e8]180
[70c0ef4]181 <para>
182 <filename>
183 /etc/fonts/*,
184 /etc/fonts/conf.d/* and
185 /usr/share/fontconfig/conf.avail/*
186 </filename>
187 </para>
[481b3e8]188
[51a70dfd]189 <indexterm zone="fontconfig fontconfig-config">
190 <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
191 </indexterm>
[481b3e8]192
[51a70dfd]193 <indexterm zone="fontconfig fontconfig-config">
194 <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
195 </indexterm>
[481b3e8]196
[fdf8b786]197 <indexterm zone="fontconfig fontconfig-config">
[70c0ef4]198 <primary sortas="e-usr-share-fontconfig-conf.avail">/usr/share/fontconfig/conf.avail/*</primary>
[fdf8b786]199 </indexterm>
200
[51a70dfd]201 </sect3>
202
203 <sect3>
204 <title>Configuration Information</title>
[481b3e8]205
[70c0ef4]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">
[51a70dfd]219 <listitem>
220 <para>/usr/share/fonts</para>
221 </listitem>
222 <listitem>
[e180a646]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>
[51a70dfd]228 </listitem>
229 </itemizedlist>
[481b3e8]230
[70c0ef4]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>
[fdf8b786]241
[51a70dfd]242 <indexterm zone="fontconfig fontconfig-config">
[b960e3ec]243 <primary sortas="e-usr-share-fonts">/usr/share/fonts</primary>
[51a70dfd]244 </indexterm>
[481b3e8]245
[51a70dfd]246 <indexterm zone="fontconfig fontconfig-config">
[b960e3ec]247 <primary sortas="e-AA.fonts">~/.fonts</primary>
[51a70dfd]248 </indexterm>
[481b3e8]249
[70c0ef4]250 <para>
251 More information about configuring <application>Fontconfig</application>
252 can be found in the user's manual in <ulink
[b7a300f7]253 url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
[fdf8b786]254 </para>
[e4e85b2]255
[51a70dfd]256 </sect3>
[481b3e8]257
[51a70dfd]258 </sect2>
[481b3e8]259
[51a70dfd]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>
[481b3e8]267
[51a70dfd]268 <seglistitem>
[70c0ef4]269 <seg>
[49df687a]270 fc-cache, fc-cat, fc-conflist, fc-list, fc-match, fc-pattern,
271 fc-query, fc-scan, and fc-validate
[70c0ef4]272 </seg>
273 <seg>
274 libfontconfig.so
275 </seg>
276 <seg>
277 /etc/fonts,
278 /usr/include/fontconfig,
[eb57769]279 /usr/share/doc/fontconfig-&fontconfig-version;,
[59feb2c]280 /usr/share/fontconfig,
[29efd929]281 /usr/share/xml/fontconfig, and
[70c0ef4]282 /var/cache/fontconfig
283 </seg>
[51a70dfd]284 </seglistitem>
285 </segmentedlist>
[481b3e8]286
[51a70dfd]287 <variablelist>
288 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
289 <?dbfo list-presentation="list"?>
290 <?dbhtml list-presentation="table"?>
[481b3e8]291
[51a70dfd]292 <varlistentry id="fc-cache">
293 <term><command>fc-cache</command></term>
294 <listitem>
[70c0ef4]295 <para>
296 is used to create font information caches.
297 </para>
[51a70dfd]298 <indexterm zone="fontconfig fc-cache">
299 <primary sortas="b-fc-cache">fc-cache</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
[481b3e8]303
[fdf8b786]304 <varlistentry id="fc-cat">
305 <term><command>fc-cat</command></term>
306 <listitem>
[70c0ef4]307 <para>
308 is used to read font information caches.
309 </para>
[fdf8b786]310 <indexterm zone="fontconfig fc-cat">
311 <primary sortas="b-fc-cat">fc-cat</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
[49df687a]316 <varlistentry id="fc-conflist">
317 <term><command>fc-conflist</command></term>
318 <listitem>
319 <para>
320 shows the ruleset files' information on the system.
321 </para>
322 <indexterm zone="fontconfig fc-conflist">
323 <primary sortas="b-fc-conflist">fc-conflist</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
[51a70dfd]328 <varlistentry id="fc-list">
329 <term><command>fc-list</command></term>
330 <listitem>
[70c0ef4]331 <para>
332 is used to create font lists.
333 </para>
[51a70dfd]334 <indexterm zone="fontconfig fc-list">
335 <primary sortas="b-fc-list">fc-list</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
[481b3e8]339
[51a70dfd]340 <varlistentry id="fc-match">
341 <term><command>fc-match</command></term>
342 <listitem>
[70c0ef4]343 <para>
344 is used to match available fonts, or find fonts that match
345 a given pattern.
346 </para>
[51a70dfd]347 <indexterm zone="fontconfig fc-match">
348 <primary sortas="b-fc-match">fc-match</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
[481b3e8]352
[eb57769]353 <varlistentry id="fc-pattern">
354 <term><command>fc-pattern</command></term>
355 <listitem>
356 <para>
357 is used to parse pattern (empty pattern by default) and show
358 the parsed result.
359 </para>
360 <indexterm zone="fontconfig fc-pattern">
361 <primary sortas="b-fc-pattern">fc-pattern</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
[78fe2b4]366 <varlistentry id="fc-query">
367 <term><command>fc-query</command></term>
368 <listitem>
[70c0ef4]369 <para>
370 is used to query fonts files and print resulting patterns.
[78fe2b4]371 </para>
372 <indexterm zone="fontconfig fc-query">
373 <primary sortas="b-fc-query">fc-query</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="fc-scan">
379 <term><command>fc-scan</command></term>
380 <listitem>
[70c0ef4]381 <para>
382 is used to scan font files and directories, and print resulting
383 patterns.
384 </para>
[78fe2b4]385 <indexterm zone="fontconfig fc-scan">
386 <primary sortas="b-fc-scan">fc-scan</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
[eb57769]391 <varlistentry id="fc-validate">
392 <term><command>fc-validate</command></term>
393 <listitem>
394 <para>
395 is used to validate font files.
396 </para>
397 <indexterm zone="fontconfig fc-validate">
398 <primary sortas="b-fc-validate">fc-validate</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
[51a70dfd]403 <varlistentry id="libfontconfig">
[efdbb27]404 <term><filename class="libraryfile">libfontconfig.so</filename></term>
[51a70dfd]405 <listitem>
[70c0ef4]406 <para>
407 contains functions used by the <application>Fontconfig</application>
408 programs and also by other programs to configure or customize font
409 access.
410 </para>
[51a70dfd]411 <indexterm zone="fontconfig libfontconfig">
[70c0ef4]412 <primary sortas="c-libfontconfig">libfontconfig.so</primary>
[51a70dfd]413 </indexterm>
414 </listitem>
415 </varlistentry>
[481b3e8]416
[51a70dfd]417 </variablelist>
418
419 </sect2>
[8de6b187]420
421</sect1>
Note: See TracBrowser for help on using the repository browser.