[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">
|
---|
[fb2e525] | 8 | <!ENTITY fontconfig-download-ftp "&gentoo-ftp-repo;/fontconfig-&fontconfig-version;.tar.gz">
|
---|
[fdf8b786] | 9 | <!ENTITY fontconfig-md5sum "108f9a03fa9ed9dd779cc7ca236da557">
|
---|
| 10 | <!ENTITY fontconfig-size "1.2 MB">
|
---|
| 11 | <!ENTITY fontconfig-buildsize "11.3 MB">
|
---|
[ac567be] | 12 | <!ENTITY fontconfig-time "0.2 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[b9ad2f9a] | 15 | <sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
|
---|
[51a70dfd] | 16 | <?dbhtml filename="fontconfig.html"?>
|
---|
[481b3e8] | 17 |
|
---|
[51a70dfd] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[481b3e8] | 22 |
|
---|
[51a70dfd] | 23 | <title>Fontconfig-&fontconfig-version;</title>
|
---|
[481b3e8] | 24 |
|
---|
[51a70dfd] | 25 | <indexterm zone="fontconfig">
|
---|
| 26 | <primary sortas="a-Fontconfig">Fontconfig</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Fontconfig</title>
|
---|
[481b3e8] | 31 |
|
---|
[51a70dfd] | 32 | <para>The <application>Fontconfig</application> package is a library
|
---|
| 33 | for configuring and customizing font access.</para>
|
---|
[481b3e8] | 34 |
|
---|
[51a70dfd] | 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 |
|
---|
[fdf8b786] | 57 | <!-- Since fontconfig is at 2.4.x, obviously it's more current
|
---|
| 58 | than 2.3.92. Uncomment when 2.4.9x is released
|
---|
[51a70dfd] | 59 | <note>
|
---|
[481b3e8] | 60 | <para>The numbering system of <application>Fontconfig</application> is
|
---|
[ac567be] | 61 | unusual. The beta versions of the package are numbered with a 9x in the
|
---|
| 62 | last portion of the release number. This means that 2.3.92 is a beta
|
---|
| 63 | release and the most current release is of the form
|
---|
| 64 | &fontconfig-version;</para>
|
---|
[51a70dfd] | 65 | </note>
|
---|
[fdf8b786] | 66 | -->
|
---|
[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
|
---|
[fdf8b786] | 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 |
|
---|
[323d61c] | 107 | <screen role="root"><userinput>make install &&
|
---|
[693fd814] | 108 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
| 109 | install -v -m644 doc/*.5 /usr/share/man/man5 &&
|
---|
[ac567be] | 110 | install -v -m755 \
|
---|
| 111 | -d /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &&
|
---|
| 112 | install -v -m644 doc/*.{html,pdf,txt} \
|
---|
| 113 | /usr/share/doc/fontconfig-&fontconfig-version; &&
|
---|
[693fd814] | 114 | install -v -m644 doc/fontconfig-devel/* \
|
---|
[ac567be] | 115 | /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel</userinput></screen>
|
---|
[4774a15e] | 116 |
|
---|
[51a70dfd] | 117 | </sect2>
|
---|
[481b3e8] | 118 |
|
---|
[51a70dfd] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
[fdf8b786] | 122 | <para><parameter>--localstatedir=/var</parameter>: This switch places
|
---|
| 123 | the system font cache files in <filename
|
---|
| 124 | class='directory'>/var/cache/fontconfig</filename>.</para>
|
---|
| 125 |
|
---|
[575b4a3f] | 126 | <para><parameter>--disable-docs</parameter>: This switch avoids building
|
---|
| 127 | the documentation (the release tarball includes pre-generated
|
---|
| 128 | documentation).</para>
|
---|
| 129 |
|
---|
[e4e85b2] | 130 | <para><parameter>--without-add-fonts</parameter>: This switch disables
|
---|
| 131 | the automatic search for X Window System fonts which, if found, may
|
---|
| 132 | confuse some applications.</para>
|
---|
| 133 |
|
---|
[ac567be] | 134 | <para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
|
---|
| 135 | Though this parameter seems counter-intuitive following the preceding
|
---|
| 136 | parameter to the <command>configure</command> command, it is used so that
|
---|
| 137 | if the builder removes the <parameter>--disable-docs</parameter> parameter,
|
---|
| 138 | the documentation will be installed in a versioned directory name instead
|
---|
| 139 | of the default
|
---|
| 140 | <filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
|
---|
[481b3e8] | 141 |
|
---|
[51a70dfd] | 142 | </sect2>
|
---|
[481b3e8] | 143 |
|
---|
[51a70dfd] | 144 | <sect2 role="configuration">
|
---|
| 145 | <title>Configuring Fontconfig</title>
|
---|
| 146 |
|
---|
| 147 | <sect3 id="fontconfig-config">
|
---|
| 148 | <title>Config Files</title>
|
---|
[481b3e8] | 149 |
|
---|
[fdf8b786] | 150 | <para><filename>/etc/fonts/*, /etc/fonts/conf.avail/*, and
|
---|
| 151 | /etc/fonts/conf.d/*</filename></para>
|
---|
[481b3e8] | 152 |
|
---|
[51a70dfd] | 153 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 154 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
| 155 | </indexterm>
|
---|
[481b3e8] | 156 |
|
---|
[51a70dfd] | 157 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 158 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
| 159 | </indexterm>
|
---|
[481b3e8] | 160 |
|
---|
[fdf8b786] | 161 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 162 | <primary sortas="e-etc-fonts-conf.avail">/etc/fonts/conf.avail/*</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 |
|
---|
[51a70dfd] | 165 | </sect3>
|
---|
| 166 |
|
---|
| 167 | <sect3>
|
---|
| 168 | <title>Configuration Information</title>
|
---|
[481b3e8] | 169 |
|
---|
[fdf8b786] | 170 | <para>The main configuration file for <application>Fontconfig</application>
|
---|
| 171 | is <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
|
---|
| 172 | to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
|
---|
| 173 | and any files in <filename class='directory'>/etc/fonts/conf.d</filename>.
|
---|
| 174 | To put a new font directory in the configuration, create
|
---|
[ac567be] | 175 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
[fdf8b786] | 176 | local information or add a new file in
|
---|
| 177 | <filename class='directory'>/etc/fonts/conf.d</filename>. The default
|
---|
| 178 | location of fonts in <application>Fontconfig</application> is:</para>
|
---|
[481b3e8] | 179 |
|
---|
[51a70dfd] | 180 | <itemizedlist spacing='compact'>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>/usr/share/fonts</para>
|
---|
| 183 | </listitem>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>~/.fonts</para>
|
---|
| 186 | </listitem>
|
---|
| 187 | </itemizedlist>
|
---|
[481b3e8] | 188 |
|
---|
[fdf8b786] | 189 | <para><application>Fontconfig</application> also ships many example
|
---|
| 190 | configuration files in the <filename
|
---|
| 191 | class='directory'>/etc/fonts/conf.avail</filename> directory. Symlinking
|
---|
| 192 | to specific files from <filename class='directory'>/etc/fonts/conf.d</filename>
|
---|
| 193 | will enable them. The default setup is generally good enough for most
|
---|
| 194 | users. See <filename>/etc/fonts/conf.avail/README</filename> for a
|
---|
| 195 | description of the configuration files.</para>
|
---|
| 196 |
|
---|
[51a70dfd] | 197 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 198 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
| 199 | </indexterm>
|
---|
[481b3e8] | 200 |
|
---|
[51a70dfd] | 201 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 202 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
| 203 | </indexterm>
|
---|
[481b3e8] | 204 |
|
---|
[e4e85b2] | 205 | <para>More information about configuring
|
---|
| 206 | <application>Fontconfig</application> can be found in the user's manual
|
---|
[fdf8b786] | 207 | in <ulink
|
---|
| 208 | url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
|
---|
| 209 | </para>
|
---|
[e4e85b2] | 210 |
|
---|
[51a70dfd] | 211 | <note>
|
---|
[fdf8b786] | 212 | <para><application>XFree86</application> also includes an internal (and
|
---|
[ac567be] | 213 | older) version of <application>Fontconfig</application> and unless it
|
---|
[fdf8b786] | 214 | is explicitly disabled, the internal version is created leaving two
|
---|
| 215 | slightly incompatible libraries on your system. It is recommended that
|
---|
| 216 | you only install one version.</para>
|
---|
[51a70dfd] | 217 | </note>
|
---|
[481b3e8] | 218 |
|
---|
[51a70dfd] | 219 | </sect3>
|
---|
[481b3e8] | 220 |
|
---|
[51a70dfd] | 221 | </sect2>
|
---|
[481b3e8] | 222 |
|
---|
[51a70dfd] | 223 | <sect2 role="content">
|
---|
| 224 | <title>Contents</title>
|
---|
| 225 |
|
---|
| 226 | <segmentedlist>
|
---|
| 227 | <segtitle>Installed Programs</segtitle>
|
---|
| 228 | <segtitle>Installed Library</segtitle>
|
---|
| 229 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 230 |
|
---|
[51a70dfd] | 231 | <seglistitem>
|
---|
[fdf8b786] | 232 | <seg>fc-cache, fc-cat, fc-list, and fc-match</seg>
|
---|
[1039de3] | 233 | <seg>libfontconfig.{so,a}</seg>
|
---|
[9625e274] | 234 | <seg>/etc/fonts, /usr/include/fontconfig,
|
---|
| 235 | /usr/share/doc/fontconfig-&fontconfig-version; and
|
---|
| 236 | /var/cache/fontconfig</seg>
|
---|
[51a70dfd] | 237 | </seglistitem>
|
---|
| 238 | </segmentedlist>
|
---|
[481b3e8] | 239 |
|
---|
[51a70dfd] | 240 | <variablelist>
|
---|
| 241 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 242 | <?dbfo list-presentation="list"?>
|
---|
| 243 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 244 |
|
---|
[51a70dfd] | 245 | <varlistentry id="fc-cache">
|
---|
| 246 | <term><command>fc-cache</command></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>is used to create font information caches.</para>
|
---|
| 249 | <indexterm zone="fontconfig fc-cache">
|
---|
| 250 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
[481b3e8] | 254 |
|
---|
[fdf8b786] | 255 | <varlistentry id="fc-cat">
|
---|
| 256 | <term><command>fc-cat</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>is used to read font information caches.</para>
|
---|
| 259 | <indexterm zone="fontconfig fc-cat">
|
---|
| 260 | <primary sortas="b-fc-cat">fc-cat</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
| 264 |
|
---|
[51a70dfd] | 265 | <varlistentry id="fc-list">
|
---|
| 266 | <term><command>fc-list</command></term>
|
---|
| 267 | <listitem>
|
---|
| 268 | <para>is used to create font lists.</para>
|
---|
| 269 | <indexterm zone="fontconfig fc-list">
|
---|
| 270 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
[481b3e8] | 274 |
|
---|
[51a70dfd] | 275 | <varlistentry id="fc-match">
|
---|
| 276 | <term><command>fc-match</command></term>
|
---|
| 277 | <listitem>
|
---|
[481b3e8] | 278 | <para>is used to match available fonts, or find fonts that match
|
---|
[51a70dfd] | 279 | a given pattern.</para>
|
---|
| 280 | <indexterm zone="fontconfig fc-match">
|
---|
| 281 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
[481b3e8] | 285 |
|
---|
[51a70dfd] | 286 | <varlistentry id="libfontconfig">
|
---|
[1039de3] | 287 | <term><filename class='libraryfile'>libfontconfig.{so,a}</filename></term>
|
---|
[51a70dfd] | 288 | <listitem>
|
---|
[481b3e8] | 289 | <para>contains functions used by the
|
---|
| 290 | <application>Fontconfig</application> programs and also by other
|
---|
[51a70dfd] | 291 | programs to configure or customize font access.</para>
|
---|
| 292 | <indexterm zone="fontconfig libfontconfig">
|
---|
[1039de3] | 293 | <primary sortas="c-libfontconfig">libfontconfig.{so,a}</primary>
|
---|
[51a70dfd] | 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
[481b3e8] | 297 |
|
---|
[51a70dfd] | 298 | </variablelist>
|
---|
| 299 |
|
---|
| 300 | </sect2>
|
---|
[8de6b187] | 301 |
|
---|
| 302 | </sect1>
|
---|