[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 |
|
---|
[def6abe4] | 7 | <!ENTITY fontconfig-download-http "http://fontconfig.org/release/fontconfig-&fontconfig-version;.tar.bz2">
|
---|
[2a05c87] | 8 | <!ENTITY fontconfig-download-ftp " ">
|
---|
[efdbb27] | 9 | <!ENTITY fontconfig-md5sum "2f239690057d1438aa282e051f721d08">
|
---|
[70c0ef4] | 10 | <!ENTITY fontconfig-size "1.4 MB">
|
---|
| 11 | <!ENTITY fontconfig-buildsize "16 MB">
|
---|
| 12 | <!ENTITY fontconfig-time "0.4 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 |
|
---|
[70c0ef4] | 32 | <para>
|
---|
| 33 | The <application>Fontconfig</application> package contains
|
---|
| 34 | a library and support programs used for configuring and
|
---|
| 35 | customizing font access.
|
---|
| 36 | </para>
|
---|
[481b3e8] | 37 |
|
---|
[f534f6f] | 38 | &lfs73_checked;
|
---|
[482477c] | 39 |
|
---|
[51a70dfd] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[70c0ef4] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&fontconfig-download-http;"/>
|
---|
| 45 | </para>
|
---|
[51a70dfd] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[70c0ef4] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&fontconfig-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[51a70dfd] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[70c0ef4] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &fontconfig-md5sum;
|
---|
| 55 | </para>
|
---|
[51a70dfd] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[70c0ef4] | 58 | <para>
|
---|
| 59 | Download size: &fontconfig-size;
|
---|
| 60 | </para>
|
---|
[51a70dfd] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[70c0ef4] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &fontconfig-buildsize;
|
---|
| 65 | </para>
|
---|
[51a70dfd] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[70c0ef4] | 68 | <para>
|
---|
| 69 | Estimated build time: &fontconfig-time;
|
---|
| 70 | </para>
|
---|
[51a70dfd] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
[481b3e8] | 75 |
|
---|
[51a70dfd] | 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[70c0ef4] | 77 | <para role="required">
|
---|
| 78 | <xref linkend="freetype2"/> and either
|
---|
| 79 | <xref linkend="expat"/> or
|
---|
| 80 | <xref linkend="libxml2"/>
|
---|
| 81 | </para>
|
---|
[481b3e8] | 82 |
|
---|
[51a70dfd] | 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[70c0ef4] | 84 | <para role="optional">
|
---|
| 85 | <xref linkend="docbook-utils"/>
|
---|
| 86 | </para>
|
---|
[51a70dfd] | 87 |
|
---|
| 88 | <note>
|
---|
[70c0ef4] | 89 | <para>
|
---|
| 90 | If you have <application>DocBook Utils</application> installed and
|
---|
| 91 | you remove the <parameter>--disable-docs</parameter> parameter from
|
---|
| 92 | the <command>configure</command> command below, you must have
|
---|
[0d7900a] | 93 | <xref linkend="perl-sgmlspm"/> installed also, or the
|
---|
[70c0ef4] | 94 | <application>Fontconfig</application> build will fail.
|
---|
| 95 | </para>
|
---|
[51a70dfd] | 96 | </note>
|
---|
[481b3e8] | 97 |
|
---|
[1663c2b5] | 98 | <para condition="html" role="usernotes">User Notes:
|
---|
[70c0ef4] | 99 | <ulink url='&blfs-wiki;/Fontconfig'/>
|
---|
| 100 | </para>
|
---|
[51a70dfd] | 101 | </sect2>
|
---|
[481b3e8] | 102 |
|
---|
[51a70dfd] | 103 | <sect2 role="installation">
|
---|
| 104 | <title>Installation of Fontconfig</title>
|
---|
| 105 |
|
---|
[70c0ef4] | 106 | <para>
|
---|
| 107 | Install <application>Fontconfig</application> by running the following
|
---|
| 108 | commands:
|
---|
| 109 | </para>
|
---|
[51a70dfd] | 110 |
|
---|
[fdf8b786] | 111 | <screen><userinput>./configure --prefix=/usr \
|
---|
[2c70bd1] | 112 | --sysconfdir=/etc \
|
---|
| 113 | --localstatedir=/var \
|
---|
[70c0ef4] | 114 | --docdir=/usr/share/doc/fontconfig-&fontconfig-version; \
|
---|
[2c70bd1] | 115 | --disable-docs \
|
---|
[70c0ef4] | 116 | --disable-static &&
|
---|
[51a70dfd] | 117 | make</userinput></screen>
|
---|
[481b3e8] | 118 |
|
---|
[70c0ef4] | 119 | <para>
|
---|
| 120 | To test the results, issue: <command>make check</command>.
|
---|
| 121 | </para>
|
---|
[481b3e8] | 122 |
|
---|
[70c0ef4] | 123 | <para>
|
---|
| 124 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 125 | </para>
|
---|
[481b3e8] | 126 |
|
---|
[18b6c56] | 127 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[4774a15e] | 128 |
|
---|
[70c0ef4] | 129 | <para>
|
---|
| 130 | If you did not remove the <parameter>--disable-docs</parameter>
|
---|
| 131 | parameter from the <command>configure</command> command, you can install
|
---|
| 132 | the pre-generated documentation by using the following commands as the
|
---|
| 133 | <systemitem class="username">root</systemitem> user:
|
---|
| 134 | </para>
|
---|
[2c70bd1] | 135 |
|
---|
[efdbb27] | 136 | <screen role="root"><userinput>install -v -dm755 \
|
---|
| 137 | /usr/share/{man/man{3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &&
|
---|
[2c70bd1] | 138 | install -v -m644 fc-*/*.1 /usr/share/man/man1 &&
|
---|
| 139 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
| 140 | install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &&
|
---|
| 141 | install -v -m644 doc/fontconfig-devel/* \
|
---|
[efdbb27] | 142 | /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &&
|
---|
[2c70bd1] | 143 | install -v -m644 doc/*.{pdf,sgml,txt,html} \
|
---|
[efdbb27] | 144 | /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
|
---|
[2c70bd1] | 145 |
|
---|
[51a70dfd] | 146 | </sect2>
|
---|
[481b3e8] | 147 |
|
---|
[51a70dfd] | 148 | <sect2 role="commands">
|
---|
| 149 | <title>Command Explanations</title>
|
---|
| 150 |
|
---|
[70c0ef4] | 151 | <para>
|
---|
| 152 | <option>--disable-docs</option>: This switch avoids building the
|
---|
| 153 | documentation (the release tarball includes pre-generated
|
---|
| 154 | documentation).
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 158 | href="../../xincludes/static-libraries.xml"/>
|
---|
[481b3e8] | 159 |
|
---|
[51a70dfd] | 160 | </sect2>
|
---|
[481b3e8] | 161 |
|
---|
[51a70dfd] | 162 | <sect2 role="configuration">
|
---|
| 163 | <title>Configuring Fontconfig</title>
|
---|
| 164 |
|
---|
| 165 | <sect3 id="fontconfig-config">
|
---|
| 166 | <title>Config Files</title>
|
---|
[481b3e8] | 167 |
|
---|
[70c0ef4] | 168 | <para>
|
---|
| 169 | <filename>
|
---|
| 170 | /etc/fonts/*,
|
---|
| 171 | /etc/fonts/conf.d/* and
|
---|
| 172 | /usr/share/fontconfig/conf.avail/*
|
---|
| 173 | </filename>
|
---|
| 174 | </para>
|
---|
[481b3e8] | 175 |
|
---|
[51a70dfd] | 176 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 177 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
| 178 | </indexterm>
|
---|
[481b3e8] | 179 |
|
---|
[51a70dfd] | 180 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 181 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
| 182 | </indexterm>
|
---|
[481b3e8] | 183 |
|
---|
[fdf8b786] | 184 | <indexterm zone="fontconfig fontconfig-config">
|
---|
[70c0ef4] | 185 | <primary sortas="e-usr-share-fontconfig-conf.avail">/usr/share/fontconfig/conf.avail/*</primary>
|
---|
[fdf8b786] | 186 | </indexterm>
|
---|
| 187 |
|
---|
[51a70dfd] | 188 | </sect3>
|
---|
| 189 |
|
---|
| 190 | <sect3>
|
---|
| 191 | <title>Configuration Information</title>
|
---|
[481b3e8] | 192 |
|
---|
[70c0ef4] | 193 | <para>
|
---|
| 194 | The main configuration file for <application>Fontconfig</application> is
|
---|
| 195 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
|
---|
| 196 | to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
|
---|
| 197 | and any files in <filename class="directory">/etc/fonts/conf.d</filename>.
|
---|
| 198 | To put a new font directory in the configuration, create
|
---|
| 199 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
| 200 | local information or add a new file in
|
---|
| 201 | <filename class="directory">/etc/fonts/conf.d</filename>. The default
|
---|
| 202 | location of fonts in <application>Fontconfig</application> is:
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
| 205 | <itemizedlist spacing="compact">
|
---|
[51a70dfd] | 206 | <listitem>
|
---|
| 207 | <para>/usr/share/fonts</para>
|
---|
| 208 | </listitem>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>~/.fonts</para>
|
---|
| 211 | </listitem>
|
---|
| 212 | </itemizedlist>
|
---|
[481b3e8] | 213 |
|
---|
[70c0ef4] | 214 | <para>
|
---|
| 215 | <application>Fontconfig</application> also ships many example
|
---|
| 216 | configuration files in the
|
---|
| 217 | <filename class="directory">/usr/share/fontconfig/conf.avail</filename>
|
---|
| 218 | directory. Symlinking specific files to
|
---|
| 219 | <filename class="directory">/etc/fonts/conf.d</filename>
|
---|
| 220 | will enable them. The default setup is generally good enough for
|
---|
| 221 | most users. See <filename>/etc/fonts/conf.d/README</filename>
|
---|
| 222 | for a description of the configuration files.
|
---|
| 223 | </para>
|
---|
[fdf8b786] | 224 |
|
---|
[51a70dfd] | 225 | <indexterm zone="fontconfig fontconfig-config">
|
---|
[b960e3ec] | 226 | <primary sortas="e-usr-share-fonts">/usr/share/fonts</primary>
|
---|
[51a70dfd] | 227 | </indexterm>
|
---|
[481b3e8] | 228 |
|
---|
[51a70dfd] | 229 | <indexterm zone="fontconfig fontconfig-config">
|
---|
[b960e3ec] | 230 | <primary sortas="e-AA.fonts">~/.fonts</primary>
|
---|
[51a70dfd] | 231 | </indexterm>
|
---|
[481b3e8] | 232 |
|
---|
[70c0ef4] | 233 | <para>
|
---|
| 234 | More information about configuring <application>Fontconfig</application>
|
---|
| 235 | can be found in the user's manual in <ulink
|
---|
| 236 | url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>
|
---|
[fdf8b786] | 237 | </para>
|
---|
[e4e85b2] | 238 |
|
---|
[51a70dfd] | 239 | </sect3>
|
---|
[481b3e8] | 240 |
|
---|
[51a70dfd] | 241 | </sect2>
|
---|
[481b3e8] | 242 |
|
---|
[51a70dfd] | 243 | <sect2 role="content">
|
---|
| 244 | <title>Contents</title>
|
---|
| 245 |
|
---|
| 246 | <segmentedlist>
|
---|
| 247 | <segtitle>Installed Programs</segtitle>
|
---|
| 248 | <segtitle>Installed Library</segtitle>
|
---|
| 249 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 250 |
|
---|
[51a70dfd] | 251 | <seglistitem>
|
---|
[70c0ef4] | 252 | <seg>
|
---|
| 253 | fc-cache, fc-cat, fc-list, fc-match, fc-query and fc-scan
|
---|
| 254 | </seg>
|
---|
| 255 | <seg>
|
---|
| 256 | libfontconfig.so
|
---|
| 257 | </seg>
|
---|
| 258 | <seg>
|
---|
| 259 | /etc/fonts,
|
---|
| 260 | /usr/include/fontconfig,
|
---|
| 261 | /usr/share/doc/fontconfig-&fontconfig-version; and
|
---|
| 262 | /var/cache/fontconfig
|
---|
| 263 | </seg>
|
---|
[51a70dfd] | 264 | </seglistitem>
|
---|
| 265 | </segmentedlist>
|
---|
[481b3e8] | 266 |
|
---|
[51a70dfd] | 267 | <variablelist>
|
---|
| 268 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 269 | <?dbfo list-presentation="list"?>
|
---|
| 270 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 271 |
|
---|
[51a70dfd] | 272 | <varlistentry id="fc-cache">
|
---|
| 273 | <term><command>fc-cache</command></term>
|
---|
| 274 | <listitem>
|
---|
[70c0ef4] | 275 | <para>
|
---|
| 276 | is used to create font information caches.
|
---|
| 277 | </para>
|
---|
[51a70dfd] | 278 | <indexterm zone="fontconfig fc-cache">
|
---|
| 279 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
[481b3e8] | 283 |
|
---|
[fdf8b786] | 284 | <varlistentry id="fc-cat">
|
---|
| 285 | <term><command>fc-cat</command></term>
|
---|
| 286 | <listitem>
|
---|
[70c0ef4] | 287 | <para>
|
---|
| 288 | is used to read font information caches.
|
---|
| 289 | </para>
|
---|
[fdf8b786] | 290 | <indexterm zone="fontconfig fc-cat">
|
---|
| 291 | <primary sortas="b-fc-cat">fc-cat</primary>
|
---|
| 292 | </indexterm>
|
---|
| 293 | </listitem>
|
---|
| 294 | </varlistentry>
|
---|
| 295 |
|
---|
[51a70dfd] | 296 | <varlistentry id="fc-list">
|
---|
| 297 | <term><command>fc-list</command></term>
|
---|
| 298 | <listitem>
|
---|
[70c0ef4] | 299 | <para>
|
---|
| 300 | is used to create font lists.
|
---|
| 301 | </para>
|
---|
[51a70dfd] | 302 | <indexterm zone="fontconfig fc-list">
|
---|
| 303 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
[481b3e8] | 307 |
|
---|
[51a70dfd] | 308 | <varlistentry id="fc-match">
|
---|
| 309 | <term><command>fc-match</command></term>
|
---|
| 310 | <listitem>
|
---|
[70c0ef4] | 311 | <para>
|
---|
| 312 | is used to match available fonts, or find fonts that match
|
---|
| 313 | a given pattern.
|
---|
| 314 | </para>
|
---|
[51a70dfd] | 315 | <indexterm zone="fontconfig fc-match">
|
---|
| 316 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
[481b3e8] | 320 |
|
---|
[78fe2b4] | 321 | <varlistentry id="fc-query">
|
---|
| 322 | <term><command>fc-query</command></term>
|
---|
| 323 | <listitem>
|
---|
[70c0ef4] | 324 | <para>
|
---|
| 325 | is used to query fonts files and print resulting patterns.
|
---|
[78fe2b4] | 326 | </para>
|
---|
| 327 | <indexterm zone="fontconfig fc-query">
|
---|
| 328 | <primary sortas="b-fc-query">fc-query</primary>
|
---|
| 329 | </indexterm>
|
---|
| 330 | </listitem>
|
---|
| 331 | </varlistentry>
|
---|
| 332 |
|
---|
| 333 | <varlistentry id="fc-scan">
|
---|
| 334 | <term><command>fc-scan</command></term>
|
---|
| 335 | <listitem>
|
---|
[70c0ef4] | 336 | <para>
|
---|
| 337 | is used to scan font files and directories, and print resulting
|
---|
| 338 | patterns.
|
---|
| 339 | </para>
|
---|
[78fe2b4] | 340 | <indexterm zone="fontconfig fc-scan">
|
---|
| 341 | <primary sortas="b-fc-scan">fc-scan</primary>
|
---|
| 342 | </indexterm>
|
---|
| 343 | </listitem>
|
---|
| 344 | </varlistentry>
|
---|
| 345 |
|
---|
[51a70dfd] | 346 | <varlistentry id="libfontconfig">
|
---|
[efdbb27] | 347 | <term><filename class="libraryfile">libfontconfig.so</filename></term>
|
---|
[51a70dfd] | 348 | <listitem>
|
---|
[70c0ef4] | 349 | <para>
|
---|
| 350 | contains functions used by the <application>Fontconfig</application>
|
---|
| 351 | programs and also by other programs to configure or customize font
|
---|
| 352 | access.
|
---|
| 353 | </para>
|
---|
[51a70dfd] | 354 | <indexterm zone="fontconfig libfontconfig">
|
---|
[70c0ef4] | 355 | <primary sortas="c-libfontconfig">libfontconfig.so</primary>
|
---|
[51a70dfd] | 356 | </indexterm>
|
---|
| 357 | </listitem>
|
---|
| 358 | </varlistentry>
|
---|
[481b3e8] | 359 |
|
---|
[51a70dfd] | 360 | </variablelist>
|
---|
| 361 |
|
---|
| 362 | </sect2>
|
---|
[8de6b187] | 363 |
|
---|
| 364 | </sect1>
|
---|