source: general/graphlib/fontconfig.xml@ c50cc901

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 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 systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c50cc901 was 2a05c87, checked in by Krejzi <krejzi@…>, 12 years ago

freetype 2.4.9, fontconfig 2.9.0, libtasn1 1.12, p11-kit 0.12, gnutls 3.0.17, desktop-file-utils 0.20, pciutils 3.1.9

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

  • Property mode set to 100644
File size: 11.5 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
[51a70dfd]7 <!ENTITY fontconfig-download-http "http://fontconfig.org/release/fontconfig-&fontconfig-version;.tar.gz">
[2a05c87]8 <!ENTITY fontconfig-download-ftp " ">
9 <!ENTITY fontconfig-md5sum "26c83855ed256b5c032baae032fadc4f">
10 <!ENTITY fontconfig-size "1.7 MB">
11 <!ENTITY fontconfig-buildsize "20 MB">
12 <!ENTITY fontconfig-time "0.3 SBU">
[52d29f7]13]>
14
[b9ad2f9a]15<sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
[51a70dfd]16 <?dbhtml filename="fontconfig.html"?>
[481b3e8]17
[51a70dfd]18 <sect1info>
19 <othername>$LastChangedBy$</othername>
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
[51a70dfd]32 <para>The <application>Fontconfig</application> package is a library
33 for configuring and customizing font access.</para>
[481b3e8]34
[4c77a949]35 &lfs71_checked;
[482477c]36
[51a70dfd]37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &fontconfig-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &fontconfig-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &fontconfig-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &fontconfig-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <note>
[481b3e8]60 <para>The numbering system of <application>Fontconfig</application> is
[ac567be]61 unusual. The beta versions of the package are numbered with a 9x in the
[18b6c56]62 last portion of the release number. This means that 2.6.92 is a beta
[ac567be]63 release and the most current release is of the form
64 &fontconfig-version;</para>
[51a70dfd]65 </note>
[481b3e8]66
[51a70dfd]67 <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
[481b3e8]68
[51a70dfd]69 <bridgehead renderas="sect4">Required</bridgehead>
[0997f66]70 <para role="required"><xref linkend="freetype2"/> and either
[358241d1]71 <xref linkend="expat"/> or <xref linkend="libxml2"/> <!-- (requires
72 <xref linkend="pkgconfig"/>) --> </para>
[481b3e8]73
[51a70dfd]74 <bridgehead renderas="sect4">Optional</bridgehead>
[caa1fce]75 <para role="optional"><xref linkend="docbook-utils"/></para>
[51a70dfd]76
77 <note>
[575b4a3f]78 <para>If you have <application>DocBook-utils</application> installed
79 and you remove the <parameter>--disable-docs</parameter> parameter from
80 the <command>configure</command> command below, you must have
[2a05c87]81 <xref linkend="perl-sgmlspm"/> installed also, or the
82 <application>Fontconfig</application> build will fail.</para>
[51a70dfd]83 </note>
[481b3e8]84
[1663c2b5]85 <para condition="html" role="usernotes">User Notes:
86 <ulink url='&blfs-wiki;/Fontconfig'/></para>
[e4e85b2]87
[51a70dfd]88 </sect2>
[481b3e8]89
[51a70dfd]90 <sect2 role="installation">
91 <title>Installation of Fontconfig</title>
92
[481b3e8]93 <para>Install <application>Fontconfig</application> by running the following
[51a70dfd]94 commands:</para>
95
[fdf8b786]96<screen><userinput>./configure --prefix=/usr \
[2c70bd1]97 --sysconfdir=/etc \
98 --localstatedir=/var \
99 --disable-docs \
100 --docdir=/usr/share/doc/fontconfig-&fontconfig-version; &amp;&amp;
[51a70dfd]101make</userinput></screen>
[481b3e8]102
[51a70dfd]103 <para>To test the results, issue: <command>make check</command>.</para>
[481b3e8]104
[51a70dfd]105 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[481b3e8]106
[18b6c56]107<screen role="root"><userinput>make install</userinput></screen>
[4774a15e]108
[2c70bd1]109 <para>If you did not remove the <parameter>--disable-docs</parameter>
110 parameter from the <command>configure</command> command, you can install
111 the pre-generated documentation by using the following commands as the
112 <systemitem class="username">root</systemitem> user:</para>
113
114<screen role="root"><userinput>install -v -m755 \
115 -d /usr/share/{man/man{3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &amp;&amp;
116install -v -m644 fc-*/*.1 /usr/share/man/man1 &amp;&amp;
117install -v -m644 doc/*.3 /usr/share/man/man3 &amp;&amp;
118install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &amp;&amp;
119install -v -m644 doc/fontconfig-devel/* \
120 /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &amp;&amp;
121install -v -m644 doc/*.{pdf,sgml,txt,html} \
122 /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
123
[51a70dfd]124 </sect2>
[481b3e8]125
[51a70dfd]126 <sect2 role="commands">
127 <title>Command Explanations</title>
128
[fdf8b786]129 <para><parameter>--localstatedir=/var</parameter>: This switch places
130 the system font cache files in <filename
131 class='directory'>/var/cache/fontconfig</filename>.</para>
132
[18b6c56]133 <para><parameter>--disable-docs</parameter>: This switch avoids building
134 the documentation (the release tarball includes pre-generated
135 documentation).</para>
136
[ac567be]137 <para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
138 Though this parameter seems counter-intuitive following the preceding
139 parameter to the <command>configure</command> command, it is used so that
140 if the builder removes the <parameter>--disable-docs</parameter> parameter,
141 the documentation will be installed in a versioned directory name instead
142 of the default
143 <filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
[481b3e8]144
[51a70dfd]145 </sect2>
[481b3e8]146
[51a70dfd]147 <sect2 role="configuration">
148 <title>Configuring Fontconfig</title>
149
150 <sect3 id="fontconfig-config">
151 <title>Config Files</title>
[481b3e8]152
[fdf8b786]153 <para><filename>/etc/fonts/*, /etc/fonts/conf.avail/*, and
154 /etc/fonts/conf.d/*</filename></para>
[481b3e8]155
[51a70dfd]156 <indexterm zone="fontconfig fontconfig-config">
157 <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
158 </indexterm>
[481b3e8]159
[51a70dfd]160 <indexterm zone="fontconfig fontconfig-config">
161 <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
162 </indexterm>
[481b3e8]163
[fdf8b786]164 <indexterm zone="fontconfig fontconfig-config">
165 <primary sortas="e-etc-fonts-conf.avail">/etc/fonts/conf.avail/*</primary>
166 </indexterm>
167
[51a70dfd]168 </sect3>
169
170 <sect3>
171 <title>Configuration Information</title>
[481b3e8]172
[fdf8b786]173 <para>The main configuration file for <application>Fontconfig</application>
174 is <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
175 to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
176 and any files in <filename class='directory'>/etc/fonts/conf.d</filename>.
177 To put a new font directory in the configuration, create
[ac567be]178 (or update) the <filename>/etc/fonts/local.conf</filename> file with your
[fdf8b786]179 local information or add a new file in
180 <filename class='directory'>/etc/fonts/conf.d</filename>. The default
181 location of fonts in <application>Fontconfig</application> is:</para>
[481b3e8]182
[51a70dfd]183 <itemizedlist spacing='compact'>
184 <listitem>
185 <para>/usr/share/fonts</para>
186 </listitem>
187 <listitem>
188 <para>~/.fonts</para>
189 </listitem>
190 </itemizedlist>
[481b3e8]191
[fdf8b786]192 <para><application>Fontconfig</application> also ships many example
193 configuration files in the <filename
194 class='directory'>/etc/fonts/conf.avail</filename> directory. Symlinking
195 to specific files from <filename class='directory'>/etc/fonts/conf.d</filename>
196 will enable them. The default setup is generally good enough for most
197 users. See <filename>/etc/fonts/conf.avail/README</filename> for a
198 description of the configuration files.</para>
199
[51a70dfd]200 <indexterm zone="fontconfig fontconfig-config">
201 <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
202 </indexterm>
[481b3e8]203
[51a70dfd]204 <indexterm zone="fontconfig fontconfig-config">
205 <primary sortas="g-AA.fonts">~/.fonts</primary>
206 </indexterm>
[481b3e8]207
[e4e85b2]208 <para>More information about configuring
209 <application>Fontconfig</application> can be found in the user's manual
[fdf8b786]210 in <ulink
211 url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
212 </para>
[e4e85b2]213
[51a70dfd]214 </sect3>
[481b3e8]215
[51a70dfd]216 </sect2>
[481b3e8]217
[51a70dfd]218 <sect2 role="content">
219 <title>Contents</title>
220
221 <segmentedlist>
222 <segtitle>Installed Programs</segtitle>
223 <segtitle>Installed Library</segtitle>
224 <segtitle>Installed Directories</segtitle>
[481b3e8]225
[51a70dfd]226 <seglistitem>
[78fe2b4]227 <seg>fc-cache, fc-cat, fc-list, fc-match, fc-query, and fc-scan</seg>
[1039de3]228 <seg>libfontconfig.{so,a}</seg>
[9625e274]229 <seg>/etc/fonts, /usr/include/fontconfig,
230 /usr/share/doc/fontconfig-&fontconfig-version; and
231 /var/cache/fontconfig</seg>
[51a70dfd]232 </seglistitem>
233 </segmentedlist>
[481b3e8]234
[51a70dfd]235 <variablelist>
236 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
237 <?dbfo list-presentation="list"?>
238 <?dbhtml list-presentation="table"?>
[481b3e8]239
[51a70dfd]240 <varlistentry id="fc-cache">
241 <term><command>fc-cache</command></term>
242 <listitem>
243 <para>is used to create font information caches.</para>
244 <indexterm zone="fontconfig fc-cache">
245 <primary sortas="b-fc-cache">fc-cache</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
[481b3e8]249
[fdf8b786]250 <varlistentry id="fc-cat">
251 <term><command>fc-cat</command></term>
252 <listitem>
253 <para>is used to read font information caches.</para>
254 <indexterm zone="fontconfig fc-cat">
255 <primary sortas="b-fc-cat">fc-cat</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
[51a70dfd]260 <varlistentry id="fc-list">
261 <term><command>fc-list</command></term>
262 <listitem>
263 <para>is used to create font lists.</para>
264 <indexterm zone="fontconfig fc-list">
265 <primary sortas="b-fc-list">fc-list</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
[481b3e8]269
[51a70dfd]270 <varlistentry id="fc-match">
271 <term><command>fc-match</command></term>
272 <listitem>
[481b3e8]273 <para>is used to match available fonts, or find fonts that match
[51a70dfd]274 a given pattern.</para>
275 <indexterm zone="fontconfig fc-match">
276 <primary sortas="b-fc-match">fc-match</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
[481b3e8]280
[78fe2b4]281 <varlistentry id="fc-query">
282 <term><command>fc-query</command></term>
283 <listitem>
284 <para>is used to query fonts files and print resulting patterns.
285 </para>
286 <indexterm zone="fontconfig fc-query">
287 <primary sortas="b-fc-query">fc-query</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="fc-scan">
293 <term><command>fc-scan</command></term>
294 <listitem>
295 <para>is used to scan font files and directories, and print resulting
296 patterns.</para>
297 <indexterm zone="fontconfig fc-scan">
298 <primary sortas="b-fc-scan">fc-scan</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
[51a70dfd]303 <varlistentry id="libfontconfig">
[1039de3]304 <term><filename class='libraryfile'>libfontconfig.{so,a}</filename></term>
[51a70dfd]305 <listitem>
[481b3e8]306 <para>contains functions used by the
307 <application>Fontconfig</application> programs and also by other
[51a70dfd]308 programs to configure or customize font access.</para>
309 <indexterm zone="fontconfig libfontconfig">
[1039de3]310 <primary sortas="c-libfontconfig">libfontconfig.{so,a}</primary>
[51a70dfd]311 </indexterm>
312 </listitem>
313 </varlistentry>
[481b3e8]314
[51a70dfd]315 </variablelist>
316
317 </sect2>
[8de6b187]318
319</sect1>
Note: See TracBrowser for help on using the repository browser.