[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">
|
---|
| 8 | <!-- <!ENTITY fontconfig-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/fontconfig-&fontconfig-version;.tar.gz"> -->
|
---|
| 9 | <!ENTITY fontconfig-download-ftp " ">
|
---|
[1dcdfb25] | 10 | <!ENTITY fontconfig-md5sum "7354f9f125ea78a8f2851cb9c31d4866">
|
---|
| 11 | <!ENTITY fontconfig-size "942 KB">
|
---|
[693fd814] | 12 | <!ENTITY fontconfig-buildsize "13.0 MB">
|
---|
[1dcdfb25] | 13 | <!ENTITY fontconfig-time "0.2 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 |
|
---|
[51a70dfd] | 33 | <para>The <application>Fontconfig</application> package is a library
|
---|
| 34 | for configuring and customizing font access.</para>
|
---|
[481b3e8] | 35 |
|
---|
[51a70dfd] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &fontconfig-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &fontconfig-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &fontconfig-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &fontconfig-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | <note>
|
---|
[481b3e8] | 59 | <para>The numbering system of <application>Fontconfig</application> is
|
---|
| 60 | unusual. The beta versions of the package are numbered with a 9x in the last
|
---|
| 61 | portion of the release number. This means that 2.3.90 is a beta release and
|
---|
[c138ad9] | 62 | the most current release is of the form &fontconfig-version;</para>
|
---|
[51a70dfd] | 63 | </note>
|
---|
[481b3e8] | 64 |
|
---|
[51a70dfd] | 65 | <bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
|
---|
[481b3e8] | 66 |
|
---|
[51a70dfd] | 67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 68 | <para><xref linkend="freetype2"/> and <xref linkend="expat"/></para>
|
---|
[481b3e8] | 69 |
|
---|
[51a70dfd] | 70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 71 | <para><xref linkend="docbook-utils"/></para>
|
---|
| 72 |
|
---|
| 73 | <note>
|
---|
[575b4a3f] | 74 | <para>If you have <application>DocBook-utils</application> installed
|
---|
| 75 | and you remove the <parameter>--disable-docs</parameter> parameter from
|
---|
| 76 | the <command>configure</command> command below, you must have
|
---|
| 77 | <xref linkend="perl-sgmlspm"/> and <xref linkend="jadetex"/> installed
|
---|
| 78 | also, or the <application>Fontconfig</application> build will fail.</para>
|
---|
[51a70dfd] | 79 | </note>
|
---|
[481b3e8] | 80 |
|
---|
[51a70dfd] | 81 | </sect2>
|
---|
[481b3e8] | 82 |
|
---|
[51a70dfd] | 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of Fontconfig</title>
|
---|
| 85 |
|
---|
[481b3e8] | 86 | <para>Install <application>Fontconfig</application> by running the following
|
---|
[51a70dfd] | 87 | commands:</para>
|
---|
| 88 |
|
---|
[575b4a3f] | 89 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc --disable-docs &&
|
---|
[51a70dfd] | 90 | make</userinput></screen>
|
---|
[481b3e8] | 91 |
|
---|
[51a70dfd] | 92 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[481b3e8] | 93 |
|
---|
[51a70dfd] | 94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[481b3e8] | 95 |
|
---|
[323d61c] | 96 | <screen role="root"><userinput>make install &&
|
---|
[693fd814] | 97 | install -v -m755 -d /usr/share/doc/fontconfig/fontconfig-devel &&
|
---|
| 98 | install -v -m644 doc/*.3 /usr/share/man/man3 &&
|
---|
| 99 | install -v -m644 doc/*.5 /usr/share/man/man5 &&
|
---|
| 100 | install -v -m644 doc/*.{html,pdf,txt} /usr/share/doc/fontconfig &&
|
---|
| 101 | install -v -m644 doc/fontconfig-devel/* \
|
---|
| 102 | /usr/share/doc/fontconfig/fontconfig-devel</userinput></screen>
|
---|
[4774a15e] | 103 |
|
---|
[51a70dfd] | 104 | </sect2>
|
---|
[481b3e8] | 105 |
|
---|
[51a70dfd] | 106 | <sect2 role="commands">
|
---|
| 107 | <title>Command Explanations</title>
|
---|
| 108 |
|
---|
[575b4a3f] | 109 | <para><parameter>--disable-docs</parameter>: This switch avoids building
|
---|
| 110 | the documentation (the release tarball includes pre-generated
|
---|
| 111 | documentation).</para>
|
---|
| 112 |
|
---|
| 113 | <!-- If you wish to build the documentation using
|
---|
[481b3e8] | 114 | <application>DocBook-utils</application>, you may need to remove the
|
---|
| 115 | <application>OpenSP</application> catalog definitions from the system
|
---|
| 116 | SGML catalogs. Use the following command before building
|
---|
[51a70dfd] | 117 | the package to accomplish this:</para>
|
---|
| 118 |
|
---|
| 119 | <screen role="root"><userinput>sed -i.orig \
|
---|
[cacf29f] | 120 | -e "\%CATALOG /etc/sgml/OpenSP-1.5.1.cat%d" \
|
---|
[04af8b24] | 121 | /etc/sgml/catalog \
|
---|
[575b4a3f] | 122 | /etc/sgml/sgml-docbook.cat</userinput></screen> -->
|
---|
[481b3e8] | 123 |
|
---|
[51a70dfd] | 124 | </sect2>
|
---|
[481b3e8] | 125 |
|
---|
[51a70dfd] | 126 | <sect2 role="configuration">
|
---|
| 127 | <title>Configuring Fontconfig</title>
|
---|
| 128 |
|
---|
| 129 | <sect3 id="fontconfig-config">
|
---|
| 130 | <title>Config Files</title>
|
---|
[481b3e8] | 131 |
|
---|
[51a70dfd] | 132 | <para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
|
---|
[481b3e8] | 133 |
|
---|
[51a70dfd] | 134 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 135 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
| 136 | </indexterm>
|
---|
[481b3e8] | 137 |
|
---|
[51a70dfd] | 138 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 139 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
| 140 | </indexterm>
|
---|
[481b3e8] | 141 |
|
---|
[51a70dfd] | 142 | </sect3>
|
---|
| 143 |
|
---|
| 144 | <sect3>
|
---|
| 145 | <title>Configuration Information</title>
|
---|
[481b3e8] | 146 |
|
---|
| 147 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
| 148 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
|
---|
| 149 | this file. To put a new font directory in the configuration, create (or
|
---|
| 150 | update) the <filename>/etc/fonts/local.conf</filename> file with your local
|
---|
| 151 | information. The default location of fonts in
|
---|
[51a70dfd] | 152 | <application>Fontconfig</application> is:</para>
|
---|
[481b3e8] | 153 |
|
---|
[51a70dfd] | 154 | <itemizedlist spacing='compact'>
|
---|
| 155 | <listitem>
|
---|
| 156 | <para>/usr/share/fonts</para>
|
---|
| 157 | </listitem>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>~/.fonts</para>
|
---|
| 160 | </listitem>
|
---|
| 161 | </itemizedlist>
|
---|
[481b3e8] | 162 |
|
---|
[51a70dfd] | 163 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 164 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
| 165 | </indexterm>
|
---|
[481b3e8] | 166 |
|
---|
[51a70dfd] | 167 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 168 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
| 169 | </indexterm>
|
---|
[481b3e8] | 170 |
|
---|
[51a70dfd] | 171 | <note>
|
---|
| 172 | <para><application>X</application> also includes an internal (and
|
---|
[481b3e8] | 173 | older) version of <application>Fontconfig</application> and unless it is
|
---|
| 174 | explicitly disabled when building <application>Xorg</application> or
|
---|
| 175 | <application>XFree86</application>, the internal version is created leaving
|
---|
| 176 | two slightly incompatible libraries on your system. It is recommended that
|
---|
[51a70dfd] | 177 | you only install one version.</para>
|
---|
| 178 | </note>
|
---|
[481b3e8] | 179 |
|
---|
[51a70dfd] | 180 | </sect3>
|
---|
[481b3e8] | 181 |
|
---|
[51a70dfd] | 182 | </sect2>
|
---|
[481b3e8] | 183 |
|
---|
[51a70dfd] | 184 | <sect2 role="content">
|
---|
| 185 | <title>Contents</title>
|
---|
| 186 |
|
---|
| 187 | <segmentedlist>
|
---|
| 188 | <segtitle>Installed Programs</segtitle>
|
---|
| 189 | <segtitle>Installed Library</segtitle>
|
---|
| 190 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 191 |
|
---|
[51a70dfd] | 192 | <seglistitem>
|
---|
| 193 | <seg>fc-cache, fc-list, and fc-match</seg>
|
---|
| 194 | <seg>libfontconfig.[so,a]</seg>
|
---|
| 195 | <seg>/etc/fonts and /usr/include/fontconfig</seg>
|
---|
| 196 | </seglistitem>
|
---|
| 197 | </segmentedlist>
|
---|
[481b3e8] | 198 |
|
---|
[51a70dfd] | 199 | <variablelist>
|
---|
| 200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 201 | <?dbfo list-presentation="list"?>
|
---|
| 202 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 203 |
|
---|
[51a70dfd] | 204 | <varlistentry id="fc-cache">
|
---|
| 205 | <term><command>fc-cache</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>is used to create font information caches.</para>
|
---|
| 208 | <indexterm zone="fontconfig fc-cache">
|
---|
| 209 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
[481b3e8] | 213 |
|
---|
[51a70dfd] | 214 | <varlistentry id="fc-list">
|
---|
| 215 | <term><command>fc-list</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>is used to create font lists.</para>
|
---|
| 218 | <indexterm zone="fontconfig fc-list">
|
---|
| 219 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
[481b3e8] | 223 |
|
---|
[51a70dfd] | 224 | <varlistentry id="fc-match">
|
---|
| 225 | <term><command>fc-match</command></term>
|
---|
| 226 | <listitem>
|
---|
[481b3e8] | 227 | <para>is used to match available fonts, or find fonts that match
|
---|
[51a70dfd] | 228 | a given pattern.</para>
|
---|
| 229 | <indexterm zone="fontconfig fc-match">
|
---|
| 230 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
[481b3e8] | 234 |
|
---|
[51a70dfd] | 235 | <varlistentry id="libfontconfig">
|
---|
| 236 | <term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
|
---|
| 237 | <listitem>
|
---|
[481b3e8] | 238 | <para>contains functions used by the
|
---|
| 239 | <application>Fontconfig</application> programs and also by other
|
---|
[51a70dfd] | 240 | programs to configure or customize font access.</para>
|
---|
| 241 | <indexterm zone="fontconfig libfontconfig">
|
---|
| 242 | <primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
[481b3e8] | 246 |
|
---|
[51a70dfd] | 247 | </variablelist>
|
---|
| 248 |
|
---|
| 249 | </sect2>
|
---|
[8de6b187] | 250 |
|
---|
| 251 | </sect1>
|
---|