source: general/graphlib/fontconfig.xml@ ac567be

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 ac567be was ac567be, checked in by Randy McMurchy <randy@…>, 18 years ago

Added an FTP download URL and changed the documentation installation to a versioned directory in the Fontconfig instructions

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

  • Property mode set to 100644
File size: 8.9 KB
Line 
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-md5sum "7354f9f125ea78a8f2851cb9c31d4866">
10 <!ENTITY fontconfig-size "942 KB">
11 <!ENTITY fontconfig-buildsize "13.0 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.3.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><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 and you remove the <parameter>--disable-docs</parameter> parameter from
76 the <command>configure</command> command below, you must have
77 <xref linkend="perl-sgmlspm"/> and <xref linkend="jadetex"/> installed
78 also, or the <application>Fontconfig</application> build will fail.</para>
79 </note>
80
81 </sect2>
82
83 <sect2 role="installation">
84 <title>Installation of Fontconfig</title>
85
86 <para>Install <application>Fontconfig</application> by running the following
87 commands:</para>
88
89<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc --disable-docs \
90 --with-docdir=/usr/share/doc/fontconfig-&fontconfig-version; &amp;&amp;
91make</userinput></screen>
92
93 <para>To test the results, issue: <command>make check</command>.</para>
94
95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
96
97<screen role="root"><userinput>make install &amp;&amp;
98install -v -m644 doc/*.3 /usr/share/man/man3 &amp;&amp;
99install -v -m644 doc/*.5 /usr/share/man/man5 &amp;&amp;
100install -v -m755 \
101 -d /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &amp;&amp;
102install -v -m644 doc/*.{html,pdf,txt} \
103 /usr/share/doc/fontconfig-&fontconfig-version; &amp;&amp;
104install -v -m644 doc/fontconfig-devel/* \
105 /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel</userinput></screen>
106
107 </sect2>
108
109 <sect2 role="commands">
110 <title>Command Explanations</title>
111
112 <para><parameter>--disable-docs</parameter>: This switch avoids building
113 the documentation (the release tarball includes pre-generated
114 documentation).</para>
115
116 <para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
117 Though this parameter seems counter-intuitive following the preceding
118 parameter to the <command>configure</command> command, it is used so that
119 if the builder removes the <parameter>--disable-docs</parameter> parameter,
120 the documentation will be installed in a versioned directory name instead
121 of the default
122 <filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
123
124 </sect2>
125
126 <sect2 role="configuration">
127 <title>Configuring Fontconfig</title>
128
129 <sect3 id="fontconfig-config">
130 <title>Config Files</title>
131
132 <para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
133
134 <indexterm zone="fontconfig fontconfig-config">
135 <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
136 </indexterm>
137
138 <indexterm zone="fontconfig fontconfig-config">
139 <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
140 </indexterm>
141
142 </sect3>
143
144 <sect3>
145 <title>Configuration Information</title>
146
147 <para>The configuration file for <application>Fontconfig</application> is
148 <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to
149 edit this file. To put a new font directory in the configuration, create
150 (or update) the <filename>/etc/fonts/local.conf</filename> file with your
151 local information. The default location of fonts in
152 <application>Fontconfig</application> is:</para>
153
154 <itemizedlist spacing='compact'>
155 <listitem>
156 <para>/usr/share/fonts</para>
157 </listitem>
158 <listitem>
159 <para>~/.fonts</para>
160 </listitem>
161 </itemizedlist>
162
163 <indexterm zone="fontconfig fontconfig-config">
164 <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
165 </indexterm>
166
167 <indexterm zone="fontconfig fontconfig-config">
168 <primary sortas="g-AA.fonts">~/.fonts</primary>
169 </indexterm>
170
171 <note>
172 <para><application>X</application> also includes an internal (and
173 older) version of <application>Fontconfig</application> and unless it
174 is explicitly disabled when building <application>Xorg</application> or
175 <application>XFree86</application>, the internal version is created
176 leaving two slightly incompatible libraries on your system. It is
177 recommended that you only install one version.</para>
178 </note>
179
180 </sect3>
181
182 </sect2>
183
184 <sect2 role="content">
185 <title>Contents</title>
186
187 <segmentedlist>
188 <segtitle>Installed Programs</segtitle>
189 <segtitle>Installed Library</segtitle>
190 <segtitle>Installed Directories</segtitle>
191
192 <seglistitem>
193 <seg>fc-cache, fc-list, and fc-match</seg>
194 <seg>libfontconfig.[so,a]</seg>
195 <seg>/etc/fonts, /usr/include/fontconfig and
196 /usr/share/doc/fontconfig-&fontconfig-version;</seg>
197 </seglistitem>
198 </segmentedlist>
199
200 <variablelist>
201 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
202 <?dbfo list-presentation="list"?>
203 <?dbhtml list-presentation="table"?>
204
205 <varlistentry id="fc-cache">
206 <term><command>fc-cache</command></term>
207 <listitem>
208 <para>is used to create font information caches.</para>
209 <indexterm zone="fontconfig fc-cache">
210 <primary sortas="b-fc-cache">fc-cache</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="fc-list">
216 <term><command>fc-list</command></term>
217 <listitem>
218 <para>is used to create font lists.</para>
219 <indexterm zone="fontconfig fc-list">
220 <primary sortas="b-fc-list">fc-list</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="fc-match">
226 <term><command>fc-match</command></term>
227 <listitem>
228 <para>is used to match available fonts, or find fonts that match
229 a given pattern.</para>
230 <indexterm zone="fontconfig fc-match">
231 <primary sortas="b-fc-match">fc-match</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="libfontconfig">
237 <term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
238 <listitem>
239 <para>contains functions used by the
240 <application>Fontconfig</application> programs and also by other
241 programs to configure or customize font access.</para>
242 <indexterm zone="fontconfig libfontconfig">
243 <primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 </variablelist>
249
250 </sect2>
251
252</sect1>
Note: See TracBrowser for help on using the repository browser.