[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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">
|
---|
[ac567be] | 8 | <!ENTITY fontconfig-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/fontconfig-&fontconfig-version;.tar.gz">
|
---|
| 9 | <!ENTITY fontconfig-md5sum "7354f9f125ea78a8f2851cb9c31d4866">
|
---|
| 10 | <!ENTITY fontconfig-size "942 KB">
|
---|
| 11 | <!ENTITY fontconfig-buildsize "13.0 MB">
|
---|
| 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>
|
---|
[caa1fce] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">fontconfig-&fontconfig-version;.tar</keyword>
|
---|
[22ac237] | 23 | <keyword role="ftpdir">fontconfig</keyword>
|
---|
[caa1fce] | 24 | </keywordset>
|
---|
[51a70dfd] | 25 | </sect1info>
|
---|
[481b3e8] | 26 |
|
---|
[51a70dfd] | 27 | <title>Fontconfig-&fontconfig-version;</title>
|
---|
[481b3e8] | 28 |
|
---|
[51a70dfd] | 29 | <indexterm zone="fontconfig">
|
---|
| 30 | <primary sortas="a-Fontconfig">Fontconfig</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Fontconfig</title>
|
---|
[481b3e8] | 35 |
|
---|
[51a70dfd] | 36 | <para>The <application>Fontconfig</application> package is a library
|
---|
| 37 | for configuring and customizing font access.</para>
|
---|
[481b3e8] | 38 |
|
---|
[51a70dfd] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &fontconfig-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &fontconfig-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &fontconfig-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &fontconfig-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
| 61 | <note>
|
---|
[481b3e8] | 62 | <para>The numbering system of <application>Fontconfig</application> is
|
---|
[ac567be] | 63 | unusual. The beta versions of the package are numbered with a 9x in the
|
---|
| 64 | last portion of the release number. This means that 2.3.92 is a beta
|
---|
| 65 | release and the most current release is of the form
|
---|
| 66 | &fontconfig-version;</para>
|
---|
[51a70dfd] | 67 | </note>
|
---|
[481b3e8] | 68 |
|
---|
[51a70dfd] | 69 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
[481b3e8] | 70 |
|
---|
[51a70dfd] | 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[caa1fce] | 72 | <para role="required"><xref linkend="freetype2"/> and <xref linkend="expat"/></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 |
|
---|
[e4e85b2] | 96 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 97 | --disable-docs --without-add-fonts \
|
---|
| 98 | --with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;&&
|
---|
[51a70dfd] | 99 | make</userinput></screen>
|
---|
[481b3e8] | 100 |
|
---|
[51a70dfd] | 101 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[481b3e8] | 102 |
|
---|
[51a70dfd] | 103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[481b3e8] | 104 |
|
---|
[323d61c] | 105 | <screen role="root"><userinput>make install &&
|
---|
[693fd814] | 106 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
| 107 | install -v -m644 doc/*.5 /usr/share/man/man5 &&
|
---|
[ac567be] | 108 | install -v -m755 \
|
---|
| 109 | -d /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel &&
|
---|
| 110 | install -v -m644 doc/*.{html,pdf,txt} \
|
---|
| 111 | /usr/share/doc/fontconfig-&fontconfig-version; &&
|
---|
[693fd814] | 112 | install -v -m644 doc/fontconfig-devel/* \
|
---|
[ac567be] | 113 | /usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-devel</userinput></screen>
|
---|
[4774a15e] | 114 |
|
---|
[51a70dfd] | 115 | </sect2>
|
---|
[481b3e8] | 116 |
|
---|
[51a70dfd] | 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
[575b4a3f] | 120 | <para><parameter>--disable-docs</parameter>: This switch avoids building
|
---|
| 121 | the documentation (the release tarball includes pre-generated
|
---|
| 122 | documentation).</para>
|
---|
| 123 |
|
---|
[e4e85b2] | 124 | <para><parameter>--without-add-fonts</parameter>: This switch disables
|
---|
| 125 | the automatic search for X Window System fonts which, if found, may
|
---|
| 126 | confuse some applications.</para>
|
---|
| 127 |
|
---|
[ac567be] | 128 | <para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
|
---|
| 129 | Though this parameter seems counter-intuitive following the preceding
|
---|
| 130 | parameter to the <command>configure</command> command, it is used so that
|
---|
| 131 | if the builder removes the <parameter>--disable-docs</parameter> parameter,
|
---|
| 132 | the documentation will be installed in a versioned directory name instead
|
---|
| 133 | of the default
|
---|
| 134 | <filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
|
---|
[481b3e8] | 135 |
|
---|
[51a70dfd] | 136 | </sect2>
|
---|
[481b3e8] | 137 |
|
---|
[51a70dfd] | 138 | <sect2 role="configuration">
|
---|
| 139 | <title>Configuring Fontconfig</title>
|
---|
| 140 |
|
---|
| 141 | <sect3 id="fontconfig-config">
|
---|
| 142 | <title>Config Files</title>
|
---|
[481b3e8] | 143 |
|
---|
[51a70dfd] | 144 | <para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
|
---|
[481b3e8] | 145 |
|
---|
[51a70dfd] | 146 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 147 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
| 148 | </indexterm>
|
---|
[481b3e8] | 149 |
|
---|
[51a70dfd] | 150 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 151 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
| 152 | </indexterm>
|
---|
[481b3e8] | 153 |
|
---|
[51a70dfd] | 154 | </sect3>
|
---|
| 155 |
|
---|
| 156 | <sect3>
|
---|
| 157 | <title>Configuration Information</title>
|
---|
[481b3e8] | 158 |
|
---|
| 159 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
[ac567be] | 160 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to
|
---|
| 161 | edit this file. To put a new font directory in the configuration, create
|
---|
| 162 | (or update) the <filename>/etc/fonts/local.conf</filename> file with your
|
---|
| 163 | local information. The default location of fonts in
|
---|
[51a70dfd] | 164 | <application>Fontconfig</application> is:</para>
|
---|
[481b3e8] | 165 |
|
---|
[51a70dfd] | 166 | <itemizedlist spacing='compact'>
|
---|
| 167 | <listitem>
|
---|
| 168 | <para>/usr/share/fonts</para>
|
---|
| 169 | </listitem>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>~/.fonts</para>
|
---|
| 172 | </listitem>
|
---|
| 173 | </itemizedlist>
|
---|
[481b3e8] | 174 |
|
---|
[51a70dfd] | 175 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 176 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
| 177 | </indexterm>
|
---|
[481b3e8] | 178 |
|
---|
[51a70dfd] | 179 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 180 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
| 181 | </indexterm>
|
---|
[481b3e8] | 182 |
|
---|
[e4e85b2] | 183 | <para>More information about configuring
|
---|
| 184 | <application>Fontconfig</application> can be found in the user's manual
|
---|
| 185 | at <ulink url="http://fontconfig.org/fontconfig-user.html"/>. There are
|
---|
| 186 | additional configuration files shipped with
|
---|
| 187 | <application>Fontconfig</application> in <filename
|
---|
| 188 | class="directory">/etc/fonts/conf.d</filename> that will be enabled
|
---|
| 189 | if their names begin with 2 numbers, e.g.,
|
---|
| 190 | <filename>/etc/fonts/conf.d/10-autohint.conf</filename>.</para>
|
---|
| 191 |
|
---|
[51a70dfd] | 192 | <note>
|
---|
| 193 | <para><application>X</application> also includes an internal (and
|
---|
[ac567be] | 194 | older) version of <application>Fontconfig</application> and unless it
|
---|
| 195 | is explicitly disabled when building <application>Xorg</application> or
|
---|
| 196 | <application>XFree86</application>, the internal version is created
|
---|
| 197 | leaving two slightly incompatible libraries on your system. It is
|
---|
| 198 | recommended that you only install one version.</para>
|
---|
[51a70dfd] | 199 | </note>
|
---|
[481b3e8] | 200 |
|
---|
[51a70dfd] | 201 | </sect3>
|
---|
[481b3e8] | 202 |
|
---|
[51a70dfd] | 203 | </sect2>
|
---|
[481b3e8] | 204 |
|
---|
[51a70dfd] | 205 | <sect2 role="content">
|
---|
| 206 | <title>Contents</title>
|
---|
| 207 |
|
---|
| 208 | <segmentedlist>
|
---|
| 209 | <segtitle>Installed Programs</segtitle>
|
---|
| 210 | <segtitle>Installed Library</segtitle>
|
---|
| 211 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 212 |
|
---|
[51a70dfd] | 213 | <seglistitem>
|
---|
| 214 | <seg>fc-cache, fc-list, and fc-match</seg>
|
---|
| 215 | <seg>libfontconfig.[so,a]</seg>
|
---|
[ac567be] | 216 | <seg>/etc/fonts, /usr/include/fontconfig and
|
---|
| 217 | /usr/share/doc/fontconfig-&fontconfig-version;</seg>
|
---|
[51a70dfd] | 218 | </seglistitem>
|
---|
| 219 | </segmentedlist>
|
---|
[481b3e8] | 220 |
|
---|
[51a70dfd] | 221 | <variablelist>
|
---|
| 222 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 223 | <?dbfo list-presentation="list"?>
|
---|
| 224 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 225 |
|
---|
[51a70dfd] | 226 | <varlistentry id="fc-cache">
|
---|
| 227 | <term><command>fc-cache</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>is used to create font information caches.</para>
|
---|
| 230 | <indexterm zone="fontconfig fc-cache">
|
---|
| 231 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
[481b3e8] | 235 |
|
---|
[51a70dfd] | 236 | <varlistentry id="fc-list">
|
---|
| 237 | <term><command>fc-list</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>is used to create font lists.</para>
|
---|
| 240 | <indexterm zone="fontconfig fc-list">
|
---|
| 241 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
[481b3e8] | 245 |
|
---|
[51a70dfd] | 246 | <varlistentry id="fc-match">
|
---|
| 247 | <term><command>fc-match</command></term>
|
---|
| 248 | <listitem>
|
---|
[481b3e8] | 249 | <para>is used to match available fonts, or find fonts that match
|
---|
[51a70dfd] | 250 | a given pattern.</para>
|
---|
| 251 | <indexterm zone="fontconfig fc-match">
|
---|
| 252 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
[481b3e8] | 256 |
|
---|
[51a70dfd] | 257 | <varlistentry id="libfontconfig">
|
---|
| 258 | <term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
|
---|
| 259 | <listitem>
|
---|
[481b3e8] | 260 | <para>contains functions used by the
|
---|
| 261 | <application>Fontconfig</application> programs and also by other
|
---|
[51a70dfd] | 262 | programs to configure or customize font access.</para>
|
---|
| 263 | <indexterm zone="fontconfig libfontconfig">
|
---|
| 264 | <primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
[481b3e8] | 268 |
|
---|
[51a70dfd] | 269 | </variablelist>
|
---|
| 270 |
|
---|
| 271 | </sect2>
|
---|
[8de6b187] | 272 |
|
---|
| 273 | </sect1>
|
---|