source: general/graphlib/fontconfig.xml@ a923f8df

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since a923f8df was 479979e, checked in by Douglas R. Reno <renodr@…>, 9 months ago

Tags

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