source: general/graphlib/fontconfig.xml@ 4c77a949

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 4c77a949 was 4c77a949, checked in by Andrew Benton <andy@…>, 12 years ago

a bunch of lfs71_checked

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

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