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