1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/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 "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/fontconfig-&fontconfig-version;.tar.gz"> -->
|
---|
9 | <!ENTITY fontconfig-download-ftp " ">
|
---|
10 | <!ENTITY fontconfig-md5sum "7354f9f125ea78a8f2851cb9c31d4866">
|
---|
11 | <!ENTITY fontconfig-size "942 KB">
|
---|
12 | <!ENTITY fontconfig-buildsize "10.5 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 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download MD5 sum: &fontconfig-md5sum;</para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download size: &fontconfig-size;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Estimated disk space required: &fontconfig-buildsize;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated build time: &fontconfig-time;</para>
|
---|
55 | </listitem>
|
---|
56 | </itemizedlist>
|
---|
57 |
|
---|
58 | <note>
|
---|
59 | <para>The numbering system of <application>Fontconfig</application> is
|
---|
60 | unusual. The beta versions of the package are numbered with a 9x in the last
|
---|
61 | portion of the release number. This means that 2.3.90 is a beta release and
|
---|
62 | the most current release is of the form 2.3.1</para>
|
---|
63 | </note>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
68 | <para><xref linkend="freetype2"/> and <xref linkend="expat"/></para>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
71 | <para><xref linkend="docbook-utils"/></para>
|
---|
72 |
|
---|
73 | <note>
|
---|
74 | <para>If you have <application>DocBook-utils</application> installed,
|
---|
75 | you must also have <xref linkend="perl-sgmlspm"/> installed also, or the
|
---|
76 | <application>Fontconfig</application> build will fail.</para>
|
---|
77 | </note>
|
---|
78 |
|
---|
79 | </sect2>
|
---|
80 |
|
---|
81 | <sect2 role="installation">
|
---|
82 | <title>Installation of Fontconfig</title>
|
---|
83 |
|
---|
84 | <para>Install <application>Fontconfig</application> by running the following
|
---|
85 | commands:</para>
|
---|
86 |
|
---|
87 | <screen><userinput>./configure --prefix=/usr \
|
---|
88 | --sysconfdir=/etc --disable-docs &&
|
---|
89 | make</userinput></screen>
|
---|
90 |
|
---|
91 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
92 |
|
---|
93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
94 |
|
---|
95 | <screen role="root"><userinput>make install &&
|
---|
96 | make -C doc install &&
|
---|
97 | install -v -m 644 doc/*.3 /usr/share/man/man3/</userinput></screen>
|
---|
98 |
|
---|
99 | </sect2>
|
---|
100 |
|
---|
101 | <sect2 role="commands">
|
---|
102 | <title>Command Explanations</title>
|
---|
103 |
|
---|
104 | <para><parameter>--disable-docs</parameter>: This switch avoids building the
|
---|
105 | documentation (the release tarball does include pre-generated documentation).
|
---|
106 | If you wish to build the documentation using
|
---|
107 | <application>DocBook-utils</application>, you may need to remove the
|
---|
108 | <application>OpenSP</application> catalog definitions from the system
|
---|
109 | SGML catalogs. Use the following command before building
|
---|
110 | the package to accomplish this:</para>
|
---|
111 |
|
---|
112 | <screen role="root"><userinput>sed -i.orig \
|
---|
113 | -e "\%CATALOG /etc/sgml/OpenSP-1.5.1.cat%d" \
|
---|
114 | /etc/sgml/catalog \
|
---|
115 | /etc/sgml/sgml-docbook.cat</userinput></screen>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="configuration">
|
---|
120 | <title>Configuring Fontconfig</title>
|
---|
121 |
|
---|
122 | <sect3 id="fontconfig-config">
|
---|
123 | <title>Config Files</title>
|
---|
124 |
|
---|
125 | <para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
|
---|
126 |
|
---|
127 | <indexterm zone="fontconfig fontconfig-config">
|
---|
128 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
129 | </indexterm>
|
---|
130 |
|
---|
131 | <indexterm zone="fontconfig fontconfig-config">
|
---|
132 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
133 | </indexterm>
|
---|
134 |
|
---|
135 | </sect3>
|
---|
136 |
|
---|
137 | <sect3>
|
---|
138 | <title>Configuration Information</title>
|
---|
139 |
|
---|
140 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
141 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
|
---|
142 | this file. To put a new font directory in the configuration, create (or
|
---|
143 | update) the <filename>/etc/fonts/local.conf</filename> file with your local
|
---|
144 | information. The default location of fonts in
|
---|
145 | <application>Fontconfig</application> is:</para>
|
---|
146 |
|
---|
147 | <itemizedlist spacing='compact'>
|
---|
148 | <listitem>
|
---|
149 | <para>/usr/share/fonts</para>
|
---|
150 | </listitem>
|
---|
151 | <listitem>
|
---|
152 | <para>~/.fonts</para>
|
---|
153 | </listitem>
|
---|
154 | </itemizedlist>
|
---|
155 |
|
---|
156 | <indexterm zone="fontconfig fontconfig-config">
|
---|
157 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
158 | </indexterm>
|
---|
159 |
|
---|
160 | <indexterm zone="fontconfig fontconfig-config">
|
---|
161 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
162 | </indexterm>
|
---|
163 |
|
---|
164 | <note>
|
---|
165 | <para><application>X</application> also includes an internal (and
|
---|
166 | older) version of <application>Fontconfig</application> and unless it is
|
---|
167 | explicitly disabled when building <application>Xorg</application> or
|
---|
168 | <application>XFree86</application>, the internal version is created leaving
|
---|
169 | two slightly incompatible libraries on your system. It is recommended that
|
---|
170 | you only install one version.</para>
|
---|
171 | </note>
|
---|
172 |
|
---|
173 | </sect3>
|
---|
174 |
|
---|
175 | </sect2>
|
---|
176 |
|
---|
177 | <sect2 role="content">
|
---|
178 | <title>Contents</title>
|
---|
179 |
|
---|
180 | <segmentedlist>
|
---|
181 | <segtitle>Installed Programs</segtitle>
|
---|
182 | <segtitle>Installed Library</segtitle>
|
---|
183 | <segtitle>Installed Directories</segtitle>
|
---|
184 |
|
---|
185 | <seglistitem>
|
---|
186 | <seg>fc-cache, fc-list, and fc-match</seg>
|
---|
187 | <seg>libfontconfig.[so,a]</seg>
|
---|
188 | <seg>/etc/fonts and /usr/include/fontconfig</seg>
|
---|
189 | </seglistitem>
|
---|
190 | </segmentedlist>
|
---|
191 |
|
---|
192 | <variablelist>
|
---|
193 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
194 | <?dbfo list-presentation="list"?>
|
---|
195 | <?dbhtml list-presentation="table"?>
|
---|
196 |
|
---|
197 | <varlistentry id="fc-cache">
|
---|
198 | <term><command>fc-cache</command></term>
|
---|
199 | <listitem>
|
---|
200 | <para>is used to create font information caches.</para>
|
---|
201 | <indexterm zone="fontconfig fc-cache">
|
---|
202 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
203 | </indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | <varlistentry id="fc-list">
|
---|
208 | <term><command>fc-list</command></term>
|
---|
209 | <listitem>
|
---|
210 | <para>is used to create font lists.</para>
|
---|
211 | <indexterm zone="fontconfig fc-list">
|
---|
212 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
213 | </indexterm>
|
---|
214 | </listitem>
|
---|
215 | </varlistentry>
|
---|
216 |
|
---|
217 | <varlistentry id="fc-match">
|
---|
218 | <term><command>fc-match</command></term>
|
---|
219 | <listitem>
|
---|
220 | <para>is used to match available fonts, or find fonts that match
|
---|
221 | a given pattern.</para>
|
---|
222 | <indexterm zone="fontconfig fc-match">
|
---|
223 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
224 | </indexterm>
|
---|
225 | </listitem>
|
---|
226 | </varlistentry>
|
---|
227 |
|
---|
228 | <varlistentry id="libfontconfig">
|
---|
229 | <term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
|
---|
230 | <listitem>
|
---|
231 | <para>contains functions used by the
|
---|
232 | <application>Fontconfig</application> programs and also by other
|
---|
233 | programs to configure or customize font access.</para>
|
---|
234 | <indexterm zone="fontconfig libfontconfig">
|
---|
235 | <primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | </variablelist>
|
---|
241 |
|
---|
242 | </sect2>
|
---|
243 |
|
---|
244 | </sect1>
|
---|