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