[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 |
|
---|
[eb57769] | 7 | <!ENTITY fontconfig-download-http
|
---|
| 8 | "http://www.freedesktop.org/software/fontconfig/release/fontconfig-&fontconfig-version;.tar.bz2">
|
---|
[2a05c87] | 9 | <!ENTITY fontconfig-download-ftp " ">
|
---|
[eb57769] | 10 | <!ENTITY fontconfig-md5sum "0f8e5c63c2d6931626185c02802375a3">
|
---|
| 11 | <!ENTITY fontconfig-size "1.5 MB">
|
---|
[70c0ef4] | 12 | <!ENTITY fontconfig-buildsize "16 MB">
|
---|
| 13 | <!ENTITY fontconfig-time "0.4 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 |
|
---|
[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 |
|
---|
[f534f6f] | 39 | &lfs73_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">
|
---|
| 79 | <xref linkend="freetype2"/> and either
|
---|
| 80 | <xref linkend="expat"/> or
|
---|
| 81 | <xref linkend="libxml2"/>
|
---|
| 82 | </para>
|
---|
[481b3e8] | 83 |
|
---|
[51a70dfd] | 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[70c0ef4] | 85 | <para role="optional">
|
---|
| 86 | <xref linkend="docbook-utils"/>
|
---|
| 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
|
---|
[0d7900a] | 94 | <xref linkend="perl-sgmlspm"/> installed also, or the
|
---|
[70c0ef4] | 95 | <application>Fontconfig</application> build will fail.
|
---|
| 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 |
|
---|
[fdf8b786] | 112 | <screen><userinput>./configure --prefix=/usr \
|
---|
[2c70bd1] | 113 | --sysconfdir=/etc \
|
---|
| 114 | --localstatedir=/var \
|
---|
[70c0ef4] | 115 | --docdir=/usr/share/doc/fontconfig-&fontconfig-version; \
|
---|
[2c70bd1] | 116 | --disable-docs \
|
---|
[70c0ef4] | 117 | --disable-static &&
|
---|
[51a70dfd] | 118 | make</userinput></screen>
|
---|
[481b3e8] | 119 |
|
---|
[70c0ef4] | 120 | <para>
|
---|
| 121 | To test the results, issue: <command>make check</command>.
|
---|
| 122 | </para>
|
---|
[481b3e8] | 123 |
|
---|
[70c0ef4] | 124 | <para>
|
---|
| 125 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 126 | </para>
|
---|
[481b3e8] | 127 |
|
---|
[18b6c56] | 128 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[4774a15e] | 129 |
|
---|
[70c0ef4] | 130 | <para>
|
---|
| 131 | If you did not remove the <parameter>--disable-docs</parameter>
|
---|
| 132 | parameter from the <command>configure</command> command, you can install
|
---|
| 133 | the pre-generated documentation by using the following commands as the
|
---|
| 134 | <systemitem class="username">root</systemitem> user:
|
---|
| 135 | </para>
|
---|
[2c70bd1] | 136 |
|
---|
[efdbb27] | 137 | <screen role="root"><userinput>install -v -dm755 \
|
---|
| 138 | /usr/share/{man/man{3,5},doc/fontconfig-&fontconfig-version;/fontconfig-devel} &&
|
---|
[2c70bd1] | 139 | install -v -m644 fc-*/*.1 /usr/share/man/man1 &&
|
---|
| 140 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
| 141 | install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &&
|
---|
| 142 | install -v -m644 doc/fontconfig-devel/* \
|
---|
[efdbb27] | 143 | /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &&
|
---|
[2c70bd1] | 144 | install -v -m644 doc/*.{pdf,sgml,txt,html} \
|
---|
[efdbb27] | 145 | /usr/share/doc/fontconfig-&fontconfig-version;</userinput></screen>
|
---|
[2c70bd1] | 146 |
|
---|
[51a70dfd] | 147 | </sect2>
|
---|
[481b3e8] | 148 |
|
---|
[51a70dfd] | 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 |
|
---|
[70c0ef4] | 152 | <para>
|
---|
| 153 | <option>--disable-docs</option>: This switch avoids building the
|
---|
| 154 | documentation (the release tarball includes pre-generated
|
---|
| 155 | documentation).
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
| 158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 159 | href="../../xincludes/static-libraries.xml"/>
|
---|
[481b3e8] | 160 |
|
---|
[51a70dfd] | 161 | </sect2>
|
---|
[481b3e8] | 162 |
|
---|
[51a70dfd] | 163 | <sect2 role="configuration">
|
---|
| 164 | <title>Configuring Fontconfig</title>
|
---|
| 165 |
|
---|
| 166 | <sect3 id="fontconfig-config">
|
---|
| 167 | <title>Config Files</title>
|
---|
[481b3e8] | 168 |
|
---|
[70c0ef4] | 169 | <para>
|
---|
| 170 | <filename>
|
---|
| 171 | /etc/fonts/*,
|
---|
| 172 | /etc/fonts/conf.d/* and
|
---|
| 173 | /usr/share/fontconfig/conf.avail/*
|
---|
| 174 | </filename>
|
---|
| 175 | </para>
|
---|
[481b3e8] | 176 |
|
---|
[51a70dfd] | 177 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 178 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
| 179 | </indexterm>
|
---|
[481b3e8] | 180 |
|
---|
[51a70dfd] | 181 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 182 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
| 183 | </indexterm>
|
---|
[481b3e8] | 184 |
|
---|
[fdf8b786] | 185 | <indexterm zone="fontconfig fontconfig-config">
|
---|
[70c0ef4] | 186 | <primary sortas="e-usr-share-fontconfig-conf.avail">/usr/share/fontconfig/conf.avail/*</primary>
|
---|
[fdf8b786] | 187 | </indexterm>
|
---|
| 188 |
|
---|
[51a70dfd] | 189 | </sect3>
|
---|
| 190 |
|
---|
| 191 | <sect3>
|
---|
| 192 | <title>Configuration Information</title>
|
---|
[481b3e8] | 193 |
|
---|
[70c0ef4] | 194 | <para>
|
---|
| 195 | The main configuration file for <application>Fontconfig</application> is
|
---|
| 196 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
|
---|
| 197 | to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
|
---|
| 198 | and any files in <filename class="directory">/etc/fonts/conf.d</filename>.
|
---|
| 199 | To put a new font directory in the configuration, create
|
---|
| 200 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
| 201 | local information or add a new file in
|
---|
| 202 | <filename class="directory">/etc/fonts/conf.d</filename>. The default
|
---|
| 203 | location of fonts in <application>Fontconfig</application> is:
|
---|
| 204 | </para>
|
---|
| 205 |
|
---|
| 206 | <itemizedlist spacing="compact">
|
---|
[51a70dfd] | 207 | <listitem>
|
---|
| 208 | <para>/usr/share/fonts</para>
|
---|
| 209 | </listitem>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>~/.fonts</para>
|
---|
| 212 | </listitem>
|
---|
| 213 | </itemizedlist>
|
---|
[481b3e8] | 214 |
|
---|
[70c0ef4] | 215 | <para>
|
---|
| 216 | <application>Fontconfig</application> also ships many example
|
---|
| 217 | configuration files in the
|
---|
| 218 | <filename class="directory">/usr/share/fontconfig/conf.avail</filename>
|
---|
| 219 | directory. Symlinking specific files to
|
---|
| 220 | <filename class="directory">/etc/fonts/conf.d</filename>
|
---|
| 221 | will enable them. The default setup is generally good enough for
|
---|
| 222 | most users. See <filename>/etc/fonts/conf.d/README</filename>
|
---|
| 223 | for a description of the configuration files.
|
---|
| 224 | </para>
|
---|
[fdf8b786] | 225 |
|
---|
[51a70dfd] | 226 | <indexterm zone="fontconfig fontconfig-config">
|
---|
[b960e3ec] | 227 | <primary sortas="e-usr-share-fonts">/usr/share/fonts</primary>
|
---|
[51a70dfd] | 228 | </indexterm>
|
---|
[481b3e8] | 229 |
|
---|
[51a70dfd] | 230 | <indexterm zone="fontconfig fontconfig-config">
|
---|
[b960e3ec] | 231 | <primary sortas="e-AA.fonts">~/.fonts</primary>
|
---|
[51a70dfd] | 232 | </indexterm>
|
---|
[481b3e8] | 233 |
|
---|
[70c0ef4] | 234 | <para>
|
---|
| 235 | More information about configuring <application>Fontconfig</application>
|
---|
| 236 | can be found in the user's manual in <ulink
|
---|
| 237 | url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>
|
---|
[fdf8b786] | 238 | </para>
|
---|
[e4e85b2] | 239 |
|
---|
[51a70dfd] | 240 | </sect3>
|
---|
[481b3e8] | 241 |
|
---|
[51a70dfd] | 242 | </sect2>
|
---|
[481b3e8] | 243 |
|
---|
[51a70dfd] | 244 | <sect2 role="content">
|
---|
| 245 | <title>Contents</title>
|
---|
| 246 |
|
---|
| 247 | <segmentedlist>
|
---|
| 248 | <segtitle>Installed Programs</segtitle>
|
---|
| 249 | <segtitle>Installed Library</segtitle>
|
---|
| 250 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 251 |
|
---|
[51a70dfd] | 252 | <seglistitem>
|
---|
[70c0ef4] | 253 | <seg>
|
---|
[eb57769] | 254 | fc-cache, fc-cat, fc-list, fc-match, fc-pattern, fc-query,
|
---|
| 255 | fc-scan and fc-validate
|
---|
[70c0ef4] | 256 | </seg>
|
---|
| 257 | <seg>
|
---|
| 258 | libfontconfig.so
|
---|
| 259 | </seg>
|
---|
| 260 | <seg>
|
---|
| 261 | /etc/fonts,
|
---|
| 262 | /usr/include/fontconfig,
|
---|
[eb57769] | 263 | /usr/share/doc/fontconfig-&fontconfig-version;,
|
---|
| 264 | /usr/share/xml/fontconfig and
|
---|
[70c0ef4] | 265 | /var/cache/fontconfig
|
---|
| 266 | </seg>
|
---|
[51a70dfd] | 267 | </seglistitem>
|
---|
| 268 | </segmentedlist>
|
---|
[481b3e8] | 269 |
|
---|
[51a70dfd] | 270 | <variablelist>
|
---|
| 271 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 272 | <?dbfo list-presentation="list"?>
|
---|
| 273 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 274 |
|
---|
[51a70dfd] | 275 | <varlistentry id="fc-cache">
|
---|
| 276 | <term><command>fc-cache</command></term>
|
---|
| 277 | <listitem>
|
---|
[70c0ef4] | 278 | <para>
|
---|
| 279 | is used to create font information caches.
|
---|
| 280 | </para>
|
---|
[51a70dfd] | 281 | <indexterm zone="fontconfig fc-cache">
|
---|
| 282 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
[481b3e8] | 286 |
|
---|
[fdf8b786] | 287 | <varlistentry id="fc-cat">
|
---|
| 288 | <term><command>fc-cat</command></term>
|
---|
| 289 | <listitem>
|
---|
[70c0ef4] | 290 | <para>
|
---|
| 291 | is used to read font information caches.
|
---|
| 292 | </para>
|
---|
[fdf8b786] | 293 | <indexterm zone="fontconfig fc-cat">
|
---|
| 294 | <primary sortas="b-fc-cat">fc-cat</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
[51a70dfd] | 299 | <varlistentry id="fc-list">
|
---|
| 300 | <term><command>fc-list</command></term>
|
---|
| 301 | <listitem>
|
---|
[70c0ef4] | 302 | <para>
|
---|
| 303 | is used to create font lists.
|
---|
| 304 | </para>
|
---|
[51a70dfd] | 305 | <indexterm zone="fontconfig fc-list">
|
---|
| 306 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
[481b3e8] | 310 |
|
---|
[51a70dfd] | 311 | <varlistentry id="fc-match">
|
---|
| 312 | <term><command>fc-match</command></term>
|
---|
| 313 | <listitem>
|
---|
[70c0ef4] | 314 | <para>
|
---|
| 315 | is used to match available fonts, or find fonts that match
|
---|
| 316 | a given pattern.
|
---|
| 317 | </para>
|
---|
[51a70dfd] | 318 | <indexterm zone="fontconfig fc-match">
|
---|
| 319 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
| 320 | </indexterm>
|
---|
| 321 | </listitem>
|
---|
| 322 | </varlistentry>
|
---|
[481b3e8] | 323 |
|
---|
[eb57769] | 324 | <varlistentry id="fc-pattern">
|
---|
| 325 | <term><command>fc-pattern</command></term>
|
---|
| 326 | <listitem>
|
---|
| 327 | <para>
|
---|
| 328 | is used to parse pattern (empty pattern by default) and show
|
---|
| 329 | the parsed result.
|
---|
| 330 | </para>
|
---|
| 331 | <indexterm zone="fontconfig fc-pattern">
|
---|
| 332 | <primary sortas="b-fc-pattern">fc-pattern</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
| 336 |
|
---|
[78fe2b4] | 337 | <varlistentry id="fc-query">
|
---|
| 338 | <term><command>fc-query</command></term>
|
---|
| 339 | <listitem>
|
---|
[70c0ef4] | 340 | <para>
|
---|
| 341 | is used to query fonts files and print resulting patterns.
|
---|
[78fe2b4] | 342 | </para>
|
---|
| 343 | <indexterm zone="fontconfig fc-query">
|
---|
| 344 | <primary sortas="b-fc-query">fc-query</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
| 349 | <varlistentry id="fc-scan">
|
---|
| 350 | <term><command>fc-scan</command></term>
|
---|
| 351 | <listitem>
|
---|
[70c0ef4] | 352 | <para>
|
---|
| 353 | is used to scan font files and directories, and print resulting
|
---|
| 354 | patterns.
|
---|
| 355 | </para>
|
---|
[78fe2b4] | 356 | <indexterm zone="fontconfig fc-scan">
|
---|
| 357 | <primary sortas="b-fc-scan">fc-scan</primary>
|
---|
| 358 | </indexterm>
|
---|
| 359 | </listitem>
|
---|
| 360 | </varlistentry>
|
---|
| 361 |
|
---|
[eb57769] | 362 | <varlistentry id="fc-validate">
|
---|
| 363 | <term><command>fc-validate</command></term>
|
---|
| 364 | <listitem>
|
---|
| 365 | <para>
|
---|
| 366 | is used to validate font files.
|
---|
| 367 | </para>
|
---|
| 368 | <indexterm zone="fontconfig fc-validate">
|
---|
| 369 | <primary sortas="b-fc-validate">fc-validate</primary>
|
---|
| 370 | </indexterm>
|
---|
| 371 | </listitem>
|
---|
| 372 | </varlistentry>
|
---|
| 373 |
|
---|
[51a70dfd] | 374 | <varlistentry id="libfontconfig">
|
---|
[efdbb27] | 375 | <term><filename class="libraryfile">libfontconfig.so</filename></term>
|
---|
[51a70dfd] | 376 | <listitem>
|
---|
[70c0ef4] | 377 | <para>
|
---|
| 378 | contains functions used by the <application>Fontconfig</application>
|
---|
| 379 | programs and also by other programs to configure or customize font
|
---|
| 380 | access.
|
---|
| 381 | </para>
|
---|
[51a70dfd] | 382 | <indexterm zone="fontconfig libfontconfig">
|
---|
[70c0ef4] | 383 | <primary sortas="c-libfontconfig">libfontconfig.so</primary>
|
---|
[51a70dfd] | 384 | </indexterm>
|
---|
| 385 | </listitem>
|
---|
| 386 | </varlistentry>
|
---|
[481b3e8] | 387 |
|
---|
[51a70dfd] | 388 | </variablelist>
|
---|
| 389 |
|
---|
| 390 | </sect2>
|
---|
[8de6b187] | 391 |
|
---|
| 392 | </sect1>
|
---|