source: general/graphlib/fontconfig.xml@ efdbb27

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since efdbb27 was efdbb27, checked in by Krejzi <krejzi@…>, 12 years ago

More package updates.

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

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