source: general/graphlib/fontconfig.xml@ 6f3fbe04

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 xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 6f3fbe04 was aa0b625, checked in by Douglas R. Reno <renodr@…>, 22 months ago

Tag Xorg and dependencies

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