[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">
|
---|
[ea243a3] | 8 | <!ENTITY fontconfig-download-ftp "&gentoo-ftp-repo;/fontconfig-&fontconfig-version;.tar.gz">
|
---|
[2c70bd1] | 9 | <!ENTITY fontconfig-md5sum "77e15a92006ddc2adbb06f840d591c0e">
|
---|
[78fe2b4] | 10 | <!ENTITY fontconfig-size "1.5 MB">
|
---|
[2c70bd1] | 11 | <!ENTITY fontconfig-buildsize "17 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 |
|
---|
[482477c] | 35 | &lfs65_checked;
|
---|
| 36 |
|
---|
[51a70dfd] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &fontconfig-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &fontconfig-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &fontconfig-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &fontconfig-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 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
|
---|
[18b6c56] | 62 | last portion of the release number. This means that 2.6.92 is a beta
|
---|
[ac567be] | 63 | release and the most current release is of the form
|
---|
| 64 | &fontconfig-version;</para>
|
---|
[51a70dfd] | 65 | </note>
|
---|
[481b3e8] | 66 |
|
---|
[51a70dfd] | 67 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
[481b3e8] | 68 |
|
---|
[51a70dfd] | 69 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[0997f66] | 70 | <para role="required"><xref linkend="freetype2"/> and either
|
---|
[358241d1] | 71 | <xref linkend="expat"/> or <xref linkend="libxml2"/> <!-- (requires
|
---|
| 72 | <xref linkend="pkgconfig"/>) --> </para>
|
---|
[481b3e8] | 73 |
|
---|
[51a70dfd] | 74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[caa1fce] | 75 | <para role="optional"><xref linkend="docbook-utils"/></para>
|
---|
[51a70dfd] | 76 |
|
---|
| 77 | <note>
|
---|
[575b4a3f] | 78 | <para>If you have <application>DocBook-utils</application> installed
|
---|
| 79 | and you remove the <parameter>--disable-docs</parameter> parameter from
|
---|
| 80 | the <command>configure</command> command below, you must have
|
---|
| 81 | <xref linkend="perl-sgmlspm"/> and <xref linkend="jadetex"/> installed
|
---|
| 82 | also, or the <application>Fontconfig</application> build will fail.</para>
|
---|
[51a70dfd] | 83 | </note>
|
---|
[481b3e8] | 84 |
|
---|
[1663c2b5] | 85 | <para condition="html" role="usernotes">User Notes:
|
---|
| 86 | <ulink url='&blfs-wiki;/Fontconfig'/></para>
|
---|
[e4e85b2] | 87 |
|
---|
[51a70dfd] | 88 | </sect2>
|
---|
[481b3e8] | 89 |
|
---|
[51a70dfd] | 90 | <sect2 role="installation">
|
---|
| 91 | <title>Installation of Fontconfig</title>
|
---|
| 92 |
|
---|
[481b3e8] | 93 | <para>Install <application>Fontconfig</application> by running the following
|
---|
[51a70dfd] | 94 | commands:</para>
|
---|
| 95 |
|
---|
[fdf8b786] | 96 | <screen><userinput>./configure --prefix=/usr \
|
---|
[2c70bd1] | 97 | --sysconfdir=/etc \
|
---|
| 98 | --localstatedir=/var \
|
---|
| 99 | --disable-docs \
|
---|
| 100 | --without-add-fonts \
|
---|
| 101 | --docdir=/usr/share/doc/fontconfig-&fontconfig-version; &&
|
---|
[51a70dfd] | 102 | make</userinput></screen>
|
---|
[481b3e8] | 103 |
|
---|
[51a70dfd] | 104 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[481b3e8] | 105 |
|
---|
[51a70dfd] | 106 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[481b3e8] | 107 |
|
---|
[18b6c56] | 108 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[4774a15e] | 109 |
|
---|
[2c70bd1] | 110 | <para>If you did not remove the <parameter>--disable-docs</parameter>
|
---|
| 111 | parameter from the <command>configure</command> command, you can install
|
---|
| 112 | the pre-generated documentation by using the following commands as the
|
---|
| 113 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 114 |
|
---|
| 115 | <screen role="root"><userinput>install -v -m755 \
|
---|
| 116 | -d /usr/share/{man/man{3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &&
|
---|
| 117 | install -v -m644 fc-*/*.1 /usr/share/man/man1 &&
|
---|
| 118 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
| 119 | install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &&
|
---|
| 120 | install -v -m644 doc/fontconfig-devel/* \
|
---|
| 121 | /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &&
|
---|
| 122 | install -v -m644 doc/*.{pdf,sgml,txt,html} \
|
---|
| 123 | /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
|
---|
| 124 |
|
---|
[51a70dfd] | 125 | </sect2>
|
---|
[481b3e8] | 126 |
|
---|
[51a70dfd] | 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
[fdf8b786] | 130 | <para><parameter>--localstatedir=/var</parameter>: This switch places
|
---|
| 131 | the system font cache files in <filename
|
---|
| 132 | class='directory'>/var/cache/fontconfig</filename>.</para>
|
---|
| 133 |
|
---|
[e4e85b2] | 134 | <para><parameter>--without-add-fonts</parameter>: This switch disables
|
---|
| 135 | the automatic search for X Window System fonts which, if found, may
|
---|
| 136 | confuse some applications.</para>
|
---|
| 137 |
|
---|
[18b6c56] | 138 | <para><parameter>--disable-docs</parameter>: This switch avoids building
|
---|
| 139 | the documentation (the release tarball includes pre-generated
|
---|
| 140 | documentation).</para>
|
---|
| 141 |
|
---|
[ac567be] | 142 | <para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
|
---|
| 143 | Though this parameter seems counter-intuitive following the preceding
|
---|
| 144 | parameter to the <command>configure</command> command, it is used so that
|
---|
| 145 | if the builder removes the <parameter>--disable-docs</parameter> parameter,
|
---|
| 146 | the documentation will be installed in a versioned directory name instead
|
---|
| 147 | of the default
|
---|
| 148 | <filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
|
---|
[481b3e8] | 149 |
|
---|
[51a70dfd] | 150 | </sect2>
|
---|
[481b3e8] | 151 |
|
---|
[51a70dfd] | 152 | <sect2 role="configuration">
|
---|
| 153 | <title>Configuring Fontconfig</title>
|
---|
| 154 |
|
---|
| 155 | <sect3 id="fontconfig-config">
|
---|
| 156 | <title>Config Files</title>
|
---|
[481b3e8] | 157 |
|
---|
[fdf8b786] | 158 | <para><filename>/etc/fonts/*, /etc/fonts/conf.avail/*, and
|
---|
| 159 | /etc/fonts/conf.d/*</filename></para>
|
---|
[481b3e8] | 160 |
|
---|
[51a70dfd] | 161 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 162 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
| 163 | </indexterm>
|
---|
[481b3e8] | 164 |
|
---|
[51a70dfd] | 165 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 166 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
| 167 | </indexterm>
|
---|
[481b3e8] | 168 |
|
---|
[fdf8b786] | 169 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 170 | <primary sortas="e-etc-fonts-conf.avail">/etc/fonts/conf.avail/*</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 |
|
---|
[51a70dfd] | 173 | </sect3>
|
---|
| 174 |
|
---|
| 175 | <sect3>
|
---|
| 176 | <title>Configuration Information</title>
|
---|
[481b3e8] | 177 |
|
---|
[fdf8b786] | 178 | <para>The main configuration file for <application>Fontconfig</application>
|
---|
| 179 | is <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
|
---|
| 180 | to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
|
---|
| 181 | and any files in <filename class='directory'>/etc/fonts/conf.d</filename>.
|
---|
| 182 | To put a new font directory in the configuration, create
|
---|
[ac567be] | 183 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
[fdf8b786] | 184 | local information or add a new file in
|
---|
| 185 | <filename class='directory'>/etc/fonts/conf.d</filename>. The default
|
---|
| 186 | location of fonts in <application>Fontconfig</application> is:</para>
|
---|
[481b3e8] | 187 |
|
---|
[51a70dfd] | 188 | <itemizedlist spacing='compact'>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>/usr/share/fonts</para>
|
---|
| 191 | </listitem>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>~/.fonts</para>
|
---|
| 194 | </listitem>
|
---|
| 195 | </itemizedlist>
|
---|
[481b3e8] | 196 |
|
---|
[fdf8b786] | 197 | <para><application>Fontconfig</application> also ships many example
|
---|
| 198 | configuration files in the <filename
|
---|
| 199 | class='directory'>/etc/fonts/conf.avail</filename> directory. Symlinking
|
---|
| 200 | to specific files from <filename class='directory'>/etc/fonts/conf.d</filename>
|
---|
| 201 | will enable them. The default setup is generally good enough for most
|
---|
| 202 | users. See <filename>/etc/fonts/conf.avail/README</filename> for a
|
---|
| 203 | description of the configuration files.</para>
|
---|
| 204 |
|
---|
[51a70dfd] | 205 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 206 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
| 207 | </indexterm>
|
---|
[481b3e8] | 208 |
|
---|
[51a70dfd] | 209 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 210 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
| 211 | </indexterm>
|
---|
[481b3e8] | 212 |
|
---|
[e4e85b2] | 213 | <para>More information about configuring
|
---|
| 214 | <application>Fontconfig</application> can be found in the user's manual
|
---|
[fdf8b786] | 215 | in <ulink
|
---|
| 216 | url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
|
---|
| 217 | </para>
|
---|
[e4e85b2] | 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>
|
---|
[78fe2b4] | 232 | <seg>fc-cache, fc-cat, fc-list, fc-match, fc-query, and fc-scan</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 |
|
---|
[78fe2b4] | 286 | <varlistentry id="fc-query">
|
---|
| 287 | <term><command>fc-query</command></term>
|
---|
| 288 | <listitem>
|
---|
| 289 | <para>is used to query fonts files and print resulting patterns.
|
---|
| 290 | </para>
|
---|
| 291 | <indexterm zone="fontconfig fc-query">
|
---|
| 292 | <primary sortas="b-fc-query">fc-query</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="fc-scan">
|
---|
| 298 | <term><command>fc-scan</command></term>
|
---|
| 299 | <listitem>
|
---|
| 300 | <para>is used to scan font files and directories, and print resulting
|
---|
| 301 | patterns.</para>
|
---|
| 302 | <indexterm zone="fontconfig fc-scan">
|
---|
| 303 | <primary sortas="b-fc-scan">fc-scan</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
[51a70dfd] | 308 | <varlistentry id="libfontconfig">
|
---|
[1039de3] | 309 | <term><filename class='libraryfile'>libfontconfig.{so,a}</filename></term>
|
---|
[51a70dfd] | 310 | <listitem>
|
---|
[481b3e8] | 311 | <para>contains functions used by the
|
---|
| 312 | <application>Fontconfig</application> programs and also by other
|
---|
[51a70dfd] | 313 | programs to configure or customize font access.</para>
|
---|
| 314 | <indexterm zone="fontconfig libfontconfig">
|
---|
[1039de3] | 315 | <primary sortas="c-libfontconfig">libfontconfig.{so,a}</primary>
|
---|
[51a70dfd] | 316 | </indexterm>
|
---|
| 317 | </listitem>
|
---|
| 318 | </varlistentry>
|
---|
[481b3e8] | 319 |
|
---|
[51a70dfd] | 320 | </variablelist>
|
---|
| 321 |
|
---|
| 322 | </sect2>
|
---|
[8de6b187] | 323 |
|
---|
| 324 | </sect1>
|
---|