[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">
|
---|
[51a70dfd] | 12 | <!ENTITY fontconfig-buildsize "10.5 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
|
---|
[51a70dfd] | 62 | the most current release is of the form 2.3.1</para>
|
---|
| 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>
|
---|
[481b3e8] | 74 | <para>If you have <application>DocBook-utils</application> installed,
|
---|
| 75 | you must also have <xref linkend="perl-modules"/>: SGMLSpm-1.03ii installed
|
---|
[51a70dfd] | 76 | also, or the <application>Fontconfig</application> build will fail.</para>
|
---|
| 77 | </note>
|
---|
[481b3e8] | 78 |
|
---|
[51a70dfd] | 79 | </sect2>
|
---|
[481b3e8] | 80 |
|
---|
[51a70dfd] | 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of Fontconfig</title>
|
---|
| 83 |
|
---|
[481b3e8] | 84 | <para>Install <application>Fontconfig</application> by running the following
|
---|
[51a70dfd] | 85 | commands:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput>./configure --prefix=/usr \
|
---|
[f9d2ee6] | 88 | --sysconfdir=/etc --disable-docs &&
|
---|
[51a70dfd] | 89 | make</userinput></screen>
|
---|
[481b3e8] | 90 |
|
---|
[51a70dfd] | 91 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[481b3e8] | 92 |
|
---|
[51a70dfd] | 93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[481b3e8] | 94 |
|
---|
[51a70dfd] | 95 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[481b3e8] | 96 |
|
---|
[4774a15e] | 97 | <para>Additionally, install the documentation by executing the following
|
---|
| 98 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 99 |
|
---|
| 100 | <screen role="root"><userinput>make -C doc install &&
|
---|
[a88d3670] | 101 | install -v -m 644 doc/*.3 /usr/share/man/man3/</userinput></screen>
|
---|
[4774a15e] | 102 |
|
---|
[51a70dfd] | 103 | </sect2>
|
---|
[481b3e8] | 104 |
|
---|
[51a70dfd] | 105 | <sect2 role="commands">
|
---|
| 106 | <title>Command Explanations</title>
|
---|
| 107 |
|
---|
[481b3e8] | 108 | <para><parameter>--disable-docs</parameter>: This switch avoids building the
|
---|
| 109 | documentation. If you wish to build the documentation using
|
---|
| 110 | <application>DocBook-utils</application>, you may need to remove the
|
---|
| 111 | <application>OpenSP</application> catalog definitions from the system
|
---|
| 112 | SGML catalogs. Use the following command before building
|
---|
[51a70dfd] | 113 | the package to accomplish this:</para>
|
---|
| 114 |
|
---|
| 115 | <screen role="root"><userinput>sed -i.orig \
|
---|
[cacf29f] | 116 | -e "\%CATALOG /etc/sgml/OpenSP-1.5.1.cat%d" \
|
---|
[04af8b24] | 117 | /etc/sgml/catalog \
|
---|
[51a70dfd] | 118 | /etc/sgml/sgml-docbook.cat</userinput></screen>
|
---|
[481b3e8] | 119 |
|
---|
[51a70dfd] | 120 | </sect2>
|
---|
[481b3e8] | 121 |
|
---|
[51a70dfd] | 122 | <sect2 role="configuration">
|
---|
| 123 | <title>Configuring Fontconfig</title>
|
---|
| 124 |
|
---|
| 125 | <sect3 id="fontconfig-config">
|
---|
| 126 | <title>Config Files</title>
|
---|
[481b3e8] | 127 |
|
---|
[51a70dfd] | 128 | <para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
|
---|
[481b3e8] | 129 |
|
---|
[51a70dfd] | 130 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 131 | <primary sortas="e-etc-fonts">/etc/fonts/*</primary>
|
---|
| 132 | </indexterm>
|
---|
[481b3e8] | 133 |
|
---|
[51a70dfd] | 134 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 135 | <primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
|
---|
| 136 | </indexterm>
|
---|
[481b3e8] | 137 |
|
---|
[51a70dfd] | 138 | </sect3>
|
---|
| 139 |
|
---|
| 140 | <sect3>
|
---|
| 141 | <title>Configuration Information</title>
|
---|
[481b3e8] | 142 |
|
---|
| 143 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
| 144 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
|
---|
| 145 | this file. To put a new font directory in the configuration, create (or
|
---|
| 146 | update) the <filename>/etc/fonts/local.conf</filename> file with your local
|
---|
| 147 | information. The default location of fonts in
|
---|
[51a70dfd] | 148 | <application>Fontconfig</application> is:</para>
|
---|
[481b3e8] | 149 |
|
---|
[51a70dfd] | 150 | <itemizedlist spacing='compact'>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>/usr/share/fonts</para>
|
---|
| 153 | </listitem>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>~/.fonts</para>
|
---|
| 156 | </listitem>
|
---|
| 157 | </itemizedlist>
|
---|
[481b3e8] | 158 |
|
---|
[51a70dfd] | 159 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 160 | <primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
|
---|
| 161 | </indexterm>
|
---|
[481b3e8] | 162 |
|
---|
[51a70dfd] | 163 | <indexterm zone="fontconfig fontconfig-config">
|
---|
| 164 | <primary sortas="g-AA.fonts">~/.fonts</primary>
|
---|
| 165 | </indexterm>
|
---|
[481b3e8] | 166 |
|
---|
[51a70dfd] | 167 | <note>
|
---|
| 168 | <para><application>X</application> also includes an internal (and
|
---|
[481b3e8] | 169 | older) version of <application>Fontconfig</application> and unless it is
|
---|
| 170 | explicitly disabled when building <application>Xorg</application> or
|
---|
| 171 | <application>XFree86</application>, the internal version is created leaving
|
---|
| 172 | two slightly incompatible libraries on your system. It is recommended that
|
---|
[51a70dfd] | 173 | you only install one version.</para>
|
---|
| 174 | </note>
|
---|
[481b3e8] | 175 |
|
---|
[51a70dfd] | 176 | </sect3>
|
---|
[481b3e8] | 177 |
|
---|
[51a70dfd] | 178 | </sect2>
|
---|
[481b3e8] | 179 |
|
---|
[51a70dfd] | 180 | <sect2 role="content">
|
---|
| 181 | <title>Contents</title>
|
---|
| 182 |
|
---|
| 183 | <segmentedlist>
|
---|
| 184 | <segtitle>Installed Programs</segtitle>
|
---|
| 185 | <segtitle>Installed Library</segtitle>
|
---|
| 186 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 187 |
|
---|
[51a70dfd] | 188 | <seglistitem>
|
---|
| 189 | <seg>fc-cache, fc-list, and fc-match</seg>
|
---|
| 190 | <seg>libfontconfig.[so,a]</seg>
|
---|
| 191 | <seg>/etc/fonts and /usr/include/fontconfig</seg>
|
---|
| 192 | </seglistitem>
|
---|
| 193 | </segmentedlist>
|
---|
[481b3e8] | 194 |
|
---|
[51a70dfd] | 195 | <variablelist>
|
---|
| 196 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 197 | <?dbfo list-presentation="list"?>
|
---|
| 198 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 199 |
|
---|
[51a70dfd] | 200 | <varlistentry id="fc-cache">
|
---|
| 201 | <term><command>fc-cache</command></term>
|
---|
| 202 | <listitem>
|
---|
| 203 | <para>is used to create font information caches.</para>
|
---|
| 204 | <indexterm zone="fontconfig fc-cache">
|
---|
| 205 | <primary sortas="b-fc-cache">fc-cache</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
[481b3e8] | 209 |
|
---|
[51a70dfd] | 210 | <varlistentry id="fc-list">
|
---|
| 211 | <term><command>fc-list</command></term>
|
---|
| 212 | <listitem>
|
---|
| 213 | <para>is used to create font lists.</para>
|
---|
| 214 | <indexterm zone="fontconfig fc-list">
|
---|
| 215 | <primary sortas="b-fc-list">fc-list</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
[481b3e8] | 219 |
|
---|
[51a70dfd] | 220 | <varlistentry id="fc-match">
|
---|
| 221 | <term><command>fc-match</command></term>
|
---|
| 222 | <listitem>
|
---|
[481b3e8] | 223 | <para>is used to match available fonts, or find fonts that match
|
---|
[51a70dfd] | 224 | a given pattern.</para>
|
---|
| 225 | <indexterm zone="fontconfig fc-match">
|
---|
| 226 | <primary sortas="b-fc-match">fc-match</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
[481b3e8] | 230 |
|
---|
[51a70dfd] | 231 | <varlistentry id="libfontconfig">
|
---|
| 232 | <term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
|
---|
| 233 | <listitem>
|
---|
[481b3e8] | 234 | <para>contains functions used by the
|
---|
| 235 | <application>Fontconfig</application> programs and also by other
|
---|
[51a70dfd] | 236 | programs to configure or customize font access.</para>
|
---|
| 237 | <indexterm zone="fontconfig libfontconfig">
|
---|
| 238 | <primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
[481b3e8] | 242 |
|
---|
[51a70dfd] | 243 | </variablelist>
|
---|
| 244 |
|
---|
| 245 | </sect2>
|
---|
[8de6b187] | 246 |
|
---|
| 247 | </sect1>
|
---|