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