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 "d5e42a27ad2f22bc5ec45f15533fc5d1">
|
---|
11 | <!ENTITY fontconfig-size "962 KB">
|
---|
12 | <!ENTITY fontconfig-buildsize "10.5 MB">
|
---|
13 | <!ENTITY fontconfig-time "0.19 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-modules"/>: SGMLSpm-1.03ii installed
|
---|
76 | also, or the <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</userinput></screen>
|
---|
96 |
|
---|
97 | </sect2>
|
---|
98 |
|
---|
99 | <sect2 role="commands">
|
---|
100 | <title>Command Explanations</title>
|
---|
101 |
|
---|
102 | <para><parameter>--disable-docs</parameter>: This switch avoids building the
|
---|
103 | documentation. If you wish to build the documentation using
|
---|
104 | <application>DocBook-utils</application>, you may need to remove the
|
---|
105 | <application>OpenSP</application> catalog definitions from the system
|
---|
106 | <acronym>SGML</acronym> catalogs. Use the following command before building
|
---|
107 | the package to accomplish this:</para>
|
---|
108 |
|
---|
109 | <screen role="root"><userinput>sed -i.orig \
|
---|
110 | -e "\%CATALOG /etc/sgml/OpenSP-1.5.1.cat%d" \
|
---|
111 | /etc/sgml/catalog \
|
---|
112 | /etc/sgml/sgml-docbook.cat</userinput></screen>
|
---|
113 |
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 | <sect2 role="configuration">
|
---|
117 | <title>Configuring Fontconfig</title>
|
---|
118 |
|
---|
119 | <sect3 id="fontconfig-config">
|
---|
120 | <title>Config Files</title>
|
---|
121 |
|
---|
122 | <para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
|
---|
123 |
|
---|
124 | <indexterm zone="fontconfig fontconfig-config">
|
---|
125 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
126 | </indexterm>
|
---|
127 |
|
---|
128 | <indexterm zone="fontconfig fontconfig-config">
|
---|
129 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
130 | </indexterm>
|
---|
131 |
|
---|
132 | </sect3>
|
---|
133 |
|
---|
134 | <sect3>
|
---|
135 | <title>Configuration Information</title>
|
---|
136 |
|
---|
137 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
138 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
|
---|
139 | this file. To put a new font directory in the configuration, create (or
|
---|
140 | update) the <filename>/etc/fonts/local.conf</filename> file with your local
|
---|
141 | information. The default location of fonts in
|
---|
142 | <application>Fontconfig</application> is:</para>
|
---|
143 |
|
---|
144 | <itemizedlist spacing='compact'>
|
---|
145 | <listitem>
|
---|
146 | <para>/usr/share/fonts</para>
|
---|
147 | </listitem>
|
---|
148 | <listitem>
|
---|
149 | <para>~/.fonts</para>
|
---|
150 | </listitem>
|
---|
151 | </itemizedlist>
|
---|
152 |
|
---|
153 | <indexterm zone="fontconfig fontconfig-config">
|
---|
154 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
155 | </indexterm>
|
---|
156 |
|
---|
157 | <indexterm zone="fontconfig fontconfig-config">
|
---|
158 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
159 | </indexterm>
|
---|
160 |
|
---|
161 | <note>
|
---|
162 | <para><application>X</application> also includes an internal (and
|
---|
163 | older) version of <application>Fontconfig</application> and unless it is
|
---|
164 | explicitly disabled when building <application>Xorg</application> or
|
---|
165 | <application>XFree86</application>, the internal version is created leaving
|
---|
166 | two slightly incompatible libraries on your system. It is recommended that
|
---|
167 | you only install one version.</para>
|
---|
168 | </note>
|
---|
169 |
|
---|
170 | </sect3>
|
---|
171 |
|
---|
172 | </sect2>
|
---|
173 |
|
---|
174 | <sect2 role="content">
|
---|
175 | <title>Contents</title>
|
---|
176 |
|
---|
177 | <segmentedlist>
|
---|
178 | <segtitle>Installed Programs</segtitle>
|
---|
179 | <segtitle>Installed Library</segtitle>
|
---|
180 | <segtitle>Installed Directories</segtitle>
|
---|
181 |
|
---|
182 | <seglistitem>
|
---|
183 | <seg>fc-cache, fc-list, and fc-match</seg>
|
---|
184 | <seg>libfontconfig.[so,a]</seg>
|
---|
185 | <seg>/etc/fonts and /usr/include/fontconfig</seg>
|
---|
186 | </seglistitem>
|
---|
187 | </segmentedlist>
|
---|
188 |
|
---|
189 | <variablelist>
|
---|
190 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
191 | <?dbfo list-presentation="list"?>
|
---|
192 | <?dbhtml list-presentation="table"?>
|
---|
193 |
|
---|
194 | <varlistentry id="fc-cache">
|
---|
195 | <term><command>fc-cache</command></term>
|
---|
196 | <listitem>
|
---|
197 | <para>is used to create font information caches.</para>
|
---|
198 | <indexterm zone="fontconfig fc-cache">
|
---|
199 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
200 | </indexterm>
|
---|
201 | </listitem>
|
---|
202 | </varlistentry>
|
---|
203 |
|
---|
204 | <varlistentry id="fc-list">
|
---|
205 | <term><command>fc-list</command></term>
|
---|
206 | <listitem>
|
---|
207 | <para>is used to create font lists.</para>
|
---|
208 | <indexterm zone="fontconfig fc-list">
|
---|
209 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
210 | </indexterm>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry>
|
---|
213 |
|
---|
214 | <varlistentry id="fc-match">
|
---|
215 | <term><command>fc-match</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>is used to match available fonts, or find fonts that match
|
---|
218 | a given pattern.</para>
|
---|
219 | <indexterm zone="fontconfig fc-match">
|
---|
220 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
221 | </indexterm>
|
---|
222 | </listitem>
|
---|
223 | </varlistentry>
|
---|
224 |
|
---|
225 | <varlistentry id="libfontconfig">
|
---|
226 | <term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
|
---|
227 | <listitem>
|
---|
228 | <para>contains functions used by the
|
---|
229 | <application>Fontconfig</application> programs and also by other
|
---|
230 | programs to configure or customize font access.</para>
|
---|
231 | <indexterm zone="fontconfig libfontconfig">
|
---|
232 | <primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
|
---|
233 | </indexterm>
|
---|
234 | </listitem>
|
---|
235 | </varlistentry>
|
---|
236 |
|
---|
237 | </variablelist>
|
---|
238 |
|
---|
239 | </sect2>
|
---|
240 |
|
---|
241 | </sect1>
|
---|