source: general/graphlib/fontconfig.xml@ bcb2837

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules 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 bcb2837 was 59d9079, checked in by Pierre Labastie <pieere@…>, 10 years ago

Tags for X

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

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