source: general/graphlib/fontconfig.xml@ 482477c

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 482477c was 482477c, checked in by Guy Dalziel <gdalziel@…>, 15 years ago

Updated to Fontconfig-2.7.1.

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

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