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 "747d2c691c66b563c8e8c1784ce8d014">
|
---|
10 | <!ENTITY fontconfig-size "1.5 MB">
|
---|
11 | <!ENTITY fontconfig-buildsize "14 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 | &lfs65_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 --localstatedir=/var \
|
---|
98 | --disable-docs --without-add-fonts \
|
---|
99 | --with-docdir=/usr/share/doc/fontconfig-&fontconfig-version; &&
|
---|
100 | make</userinput></screen>
|
---|
101 |
|
---|
102 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
103 |
|
---|
104 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
105 |
|
---|
106 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2 role="commands">
|
---|
111 | <title>Command Explanations</title>
|
---|
112 |
|
---|
113 | <para><parameter>--localstatedir=/var</parameter>: This switch places
|
---|
114 | the system font cache files in <filename
|
---|
115 | class='directory'>/var/cache/fontconfig</filename>.</para>
|
---|
116 |
|
---|
117 | <para><parameter>--without-add-fonts</parameter>: This switch disables
|
---|
118 | the automatic search for X Window System fonts which, if found, may
|
---|
119 | confuse some applications.</para>
|
---|
120 |
|
---|
121 | <para><parameter>--disable-docs</parameter>: This switch avoids building
|
---|
122 | the documentation (the release tarball includes pre-generated
|
---|
123 | documentation).</para>
|
---|
124 |
|
---|
125 | <para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
|
---|
126 | Though this parameter seems counter-intuitive following the preceding
|
---|
127 | parameter to the <command>configure</command> command, it is used so that
|
---|
128 | if the builder removes the <parameter>--disable-docs</parameter> parameter,
|
---|
129 | the documentation will be installed in a versioned directory name instead
|
---|
130 | of the default
|
---|
131 | <filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <sect2 role="configuration">
|
---|
136 | <title>Configuring Fontconfig</title>
|
---|
137 |
|
---|
138 | <sect3 id="fontconfig-config">
|
---|
139 | <title>Config Files</title>
|
---|
140 |
|
---|
141 | <para><filename>/etc/fonts/*, /etc/fonts/conf.avail/*, and
|
---|
142 | /etc/fonts/conf.d/*</filename></para>
|
---|
143 |
|
---|
144 | <indexterm zone="fontconfig fontconfig-config">
|
---|
145 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
146 | </indexterm>
|
---|
147 |
|
---|
148 | <indexterm zone="fontconfig fontconfig-config">
|
---|
149 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
150 | </indexterm>
|
---|
151 |
|
---|
152 | <indexterm zone="fontconfig fontconfig-config">
|
---|
153 | <primary sortas="e-etc-fonts-conf.avail">/etc/fonts/conf.avail/*</primary>
|
---|
154 | </indexterm>
|
---|
155 |
|
---|
156 | </sect3>
|
---|
157 |
|
---|
158 | <sect3>
|
---|
159 | <title>Configuration Information</title>
|
---|
160 |
|
---|
161 | <para>The main configuration file for <application>Fontconfig</application>
|
---|
162 | is <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
|
---|
163 | to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
|
---|
164 | and any files in <filename class='directory'>/etc/fonts/conf.d</filename>.
|
---|
165 | To put a new font directory in the configuration, create
|
---|
166 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
167 | local information or add a new file in
|
---|
168 | <filename class='directory'>/etc/fonts/conf.d</filename>. The default
|
---|
169 | location of fonts in <application>Fontconfig</application> is:</para>
|
---|
170 |
|
---|
171 | <itemizedlist spacing='compact'>
|
---|
172 | <listitem>
|
---|
173 | <para>/usr/share/fonts</para>
|
---|
174 | </listitem>
|
---|
175 | <listitem>
|
---|
176 | <para>~/.fonts</para>
|
---|
177 | </listitem>
|
---|
178 | </itemizedlist>
|
---|
179 |
|
---|
180 | <para><application>Fontconfig</application> also ships many example
|
---|
181 | configuration files in the <filename
|
---|
182 | class='directory'>/etc/fonts/conf.avail</filename> directory. Symlinking
|
---|
183 | to specific files from <filename class='directory'>/etc/fonts/conf.d</filename>
|
---|
184 | will enable them. The default setup is generally good enough for most
|
---|
185 | users. See <filename>/etc/fonts/conf.avail/README</filename> for a
|
---|
186 | description of the configuration files.</para>
|
---|
187 |
|
---|
188 | <indexterm zone="fontconfig fontconfig-config">
|
---|
189 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
190 | </indexterm>
|
---|
191 |
|
---|
192 | <indexterm zone="fontconfig fontconfig-config">
|
---|
193 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
194 | </indexterm>
|
---|
195 |
|
---|
196 | <para>More information about configuring
|
---|
197 | <application>Fontconfig</application> can be found in the user's manual
|
---|
198 | in <ulink
|
---|
199 | url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
|
---|
200 | </para>
|
---|
201 |
|
---|
202 | </sect3>
|
---|
203 |
|
---|
204 | </sect2>
|
---|
205 |
|
---|
206 | <sect2 role="content">
|
---|
207 | <title>Contents</title>
|
---|
208 |
|
---|
209 | <segmentedlist>
|
---|
210 | <segtitle>Installed Programs</segtitle>
|
---|
211 | <segtitle>Installed Library</segtitle>
|
---|
212 | <segtitle>Installed Directories</segtitle>
|
---|
213 |
|
---|
214 | <seglistitem>
|
---|
215 | <seg>fc-cache, fc-cat, fc-list, fc-match, fc-query, and fc-scan</seg>
|
---|
216 | <seg>libfontconfig.{so,a}</seg>
|
---|
217 | <seg>/etc/fonts, /usr/include/fontconfig,
|
---|
218 | /usr/share/doc/fontconfig-&fontconfig-version; and
|
---|
219 | /var/cache/fontconfig</seg>
|
---|
220 | </seglistitem>
|
---|
221 | </segmentedlist>
|
---|
222 |
|
---|
223 | <variablelist>
|
---|
224 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
225 | <?dbfo list-presentation="list"?>
|
---|
226 | <?dbhtml list-presentation="table"?>
|
---|
227 |
|
---|
228 | <varlistentry id="fc-cache">
|
---|
229 | <term><command>fc-cache</command></term>
|
---|
230 | <listitem>
|
---|
231 | <para>is used to create font information caches.</para>
|
---|
232 | <indexterm zone="fontconfig fc-cache">
|
---|
233 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
234 | </indexterm>
|
---|
235 | </listitem>
|
---|
236 | </varlistentry>
|
---|
237 |
|
---|
238 | <varlistentry id="fc-cat">
|
---|
239 | <term><command>fc-cat</command></term>
|
---|
240 | <listitem>
|
---|
241 | <para>is used to read font information caches.</para>
|
---|
242 | <indexterm zone="fontconfig fc-cat">
|
---|
243 | <primary sortas="b-fc-cat">fc-cat</primary>
|
---|
244 | </indexterm>
|
---|
245 | </listitem>
|
---|
246 | </varlistentry>
|
---|
247 |
|
---|
248 | <varlistentry id="fc-list">
|
---|
249 | <term><command>fc-list</command></term>
|
---|
250 | <listitem>
|
---|
251 | <para>is used to create font lists.</para>
|
---|
252 | <indexterm zone="fontconfig fc-list">
|
---|
253 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
254 | </indexterm>
|
---|
255 | </listitem>
|
---|
256 | </varlistentry>
|
---|
257 |
|
---|
258 | <varlistentry id="fc-match">
|
---|
259 | <term><command>fc-match</command></term>
|
---|
260 | <listitem>
|
---|
261 | <para>is used to match available fonts, or find fonts that match
|
---|
262 | a given pattern.</para>
|
---|
263 | <indexterm zone="fontconfig fc-match">
|
---|
264 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
265 | </indexterm>
|
---|
266 | </listitem>
|
---|
267 | </varlistentry>
|
---|
268 |
|
---|
269 | <varlistentry id="fc-query">
|
---|
270 | <term><command>fc-query</command></term>
|
---|
271 | <listitem>
|
---|
272 | <para>is used to query fonts files and print resulting patterns.
|
---|
273 | </para>
|
---|
274 | <indexterm zone="fontconfig fc-query">
|
---|
275 | <primary sortas="b-fc-query">fc-query</primary>
|
---|
276 | </indexterm>
|
---|
277 | </listitem>
|
---|
278 | </varlistentry>
|
---|
279 |
|
---|
280 | <varlistentry id="fc-scan">
|
---|
281 | <term><command>fc-scan</command></term>
|
---|
282 | <listitem>
|
---|
283 | <para>is used to scan font files and directories, and print resulting
|
---|
284 | patterns.</para>
|
---|
285 | <indexterm zone="fontconfig fc-scan">
|
---|
286 | <primary sortas="b-fc-scan">fc-scan</primary>
|
---|
287 | </indexterm>
|
---|
288 | </listitem>
|
---|
289 | </varlistentry>
|
---|
290 |
|
---|
291 | <varlistentry id="libfontconfig">
|
---|
292 | <term><filename class='libraryfile'>libfontconfig.{so,a}</filename></term>
|
---|
293 | <listitem>
|
---|
294 | <para>contains functions used by the
|
---|
295 | <application>Fontconfig</application> programs and also by other
|
---|
296 | programs to configure or customize font access.</para>
|
---|
297 | <indexterm zone="fontconfig libfontconfig">
|
---|
298 | <primary sortas="c-libfontconfig">libfontconfig.{so,a}</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | </variablelist>
|
---|
304 |
|
---|
305 | </sect2>
|
---|
306 |
|
---|
307 | </sect1>
|
---|