glfs/general/graphlib/fontconfig.xml
Guy Dalziel 482477cae8 Updated to Fontconfig-2.7.1.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7906 af4574ff-66df-0310-9fd7-8a98e5e911e0
2009-07-30 10:17:29 +00:00

309 lines
11 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY fontconfig-download-http "http://fontconfig.org/release/fontconfig-&fontconfig-version;.tar.gz">
<!-- <!ENTITY fontconfig-download-ftp "&gentoo-ftp-repo;/fontconfig-&fontconfig-version;.tar.gz"> -->
<!ENTITY fontconfig-download-ftp " ">
<!ENTITY fontconfig-md5sum "41024d11765acdd7520d1f5458e751db">
<!ENTITY fontconfig-size "1.5 MB">
<!ENTITY fontconfig-buildsize "14 MB">
<!ENTITY fontconfig-time "0.2 SBU">
]>
<sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
<?dbhtml filename="fontconfig.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>Fontconfig-&fontconfig-version;</title>
<indexterm zone="fontconfig">
<primary sortas="a-Fontconfig">Fontconfig</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Fontconfig</title>
<para>The <application>Fontconfig</application> package is a library
for configuring and customizing font access.</para>
&lfs65_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&fontconfig-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&fontconfig-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &fontconfig-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &fontconfig-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &fontconfig-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &fontconfig-time;</para>
</listitem>
</itemizedlist>
<note>
<para>The numbering system of <application>Fontconfig</application> is
unusual. The beta versions of the package are numbered with a 9x in the
last portion of the release number. This means that 2.6.92 is a beta
release and the most current release is of the form
&fontconfig-version;</para>
</note>
<bridgehead renderas="sect3">Fontconfig Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="freetype2"/> and either
<xref linkend="expat"/> or <xref linkend="libxml2"/> <!-- (requires
<xref linkend="pkgconfig"/>) --> </para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional"><xref linkend="docbook-utils"/></para>
<note>
<para>If you have <application>DocBook-utils</application> installed
and you remove the <parameter>--disable-docs</parameter> parameter from
the <command>configure</command> command below, you must have
<xref linkend="perl-sgmlspm"/> and <xref linkend="jadetex"/> installed
also, or the <application>Fontconfig</application> build will fail.</para>
</note>
<para condition="html" role="usernotes">User Notes:
<ulink url='&blfs-wiki;/Fontconfig'/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Fontconfig</title>
<para>Install <application>Fontconfig</application> by running the following
commands:</para>
<screen><userinput>./configure --prefix=/usr \
--sysconfdir=/etc --localstatedir=/var \
--disable-docs --without-add-fonts \
--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version; &amp;&amp;
make</userinput></screen>
<para>To test the results, issue: <command>make check</command>.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><parameter>--localstatedir=/var</parameter>: This switch places
the system font cache files in <filename
class='directory'>/var/cache/fontconfig</filename>.</para>
<para><parameter>--without-add-fonts</parameter>: This switch disables
the automatic search for X Window System fonts which, if found, may
confuse some applications.</para>
<para><parameter>--disable-docs</parameter>: This switch avoids building
the documentation (the release tarball includes pre-generated
documentation).</para>
<para><parameter>--with-docdir=/usr/share/doc/fontconfig-&fontconfig-version;</parameter>:
Though this parameter seems counter-intuitive following the preceding
parameter to the <command>configure</command> command, it is used so that
if the builder removes the <parameter>--disable-docs</parameter> parameter,
the documentation will be installed in a versioned directory name instead
of the default
<filename class='directory'>/usr/share/doc/fontconfig</filename>.</para>
</sect2>
<sect2 role="configuration">
<title>Configuring Fontconfig</title>
<sect3 id="fontconfig-config">
<title>Config Files</title>
<para><filename>/etc/fonts/*, /etc/fonts/conf.avail/*, and
/etc/fonts/conf.d/*</filename></para>
<indexterm zone="fontconfig fontconfig-config">
<primary sortas="e-etc-fonts">/etc/fonts/*</primary>
</indexterm>
<indexterm zone="fontconfig fontconfig-config">
<primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary>
</indexterm>
<indexterm zone="fontconfig fontconfig-config">
<primary sortas="e-etc-fonts-conf.avail">/etc/fonts/conf.avail/*</primary>
</indexterm>
</sect3>
<sect3>
<title>Configuration Information</title>
<para>The main configuration file for <application>Fontconfig</application>
is <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want
to edit this file. It will also read <filename>/etc/fonts/local.conf</filename>
and any files in <filename class='directory'>/etc/fonts/conf.d</filename>.
To put a new font directory in the configuration, create
(or update) the <filename>/etc/fonts/local.conf</filename> file with your
local information or add a new file in
<filename class='directory'>/etc/fonts/conf.d</filename>. The default
location of fonts in <application>Fontconfig</application> is:</para>
<itemizedlist spacing='compact'>
<listitem>
<para>/usr/share/fonts</para>
</listitem>
<listitem>
<para>~/.fonts</para>
</listitem>
</itemizedlist>
<para><application>Fontconfig</application> also ships many example
configuration files in the <filename
class='directory'>/etc/fonts/conf.avail</filename> directory. Symlinking
to specific files from <filename class='directory'>/etc/fonts/conf.d</filename>
will enable them. The default setup is generally good enough for most
users. See <filename>/etc/fonts/conf.avail/README</filename> for a
description of the configuration files.</para>
<indexterm zone="fontconfig fontconfig-config">
<primary sortas="g-usr-share-fonts">/usr/share/fonts</primary>
</indexterm>
<indexterm zone="fontconfig fontconfig-config">
<primary sortas="g-AA.fonts">~/.fonts</primary>
</indexterm>
<para>More information about configuring
<application>Fontconfig</application> can be found in the user's manual
in <ulink
url="file:///usr/share/doc/fontconfig-&fontconfig-version;/fontconfig-user.html"/>.
</para>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>fc-cache, fc-cat, fc-list, fc-match, fc-query, and fc-scan</seg>
<seg>libfontconfig.{so,a}</seg>
<seg>/etc/fonts, /usr/include/fontconfig,
/usr/share/doc/fontconfig-&fontconfig-version; and
/var/cache/fontconfig</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="fc-cache">
<term><command>fc-cache</command></term>
<listitem>
<para>is used to create font information caches.</para>
<indexterm zone="fontconfig fc-cache">
<primary sortas="b-fc-cache">fc-cache</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fc-cat">
<term><command>fc-cat</command></term>
<listitem>
<para>is used to read font information caches.</para>
<indexterm zone="fontconfig fc-cat">
<primary sortas="b-fc-cat">fc-cat</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fc-list">
<term><command>fc-list</command></term>
<listitem>
<para>is used to create font lists.</para>
<indexterm zone="fontconfig fc-list">
<primary sortas="b-fc-list">fc-list</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fc-match">
<term><command>fc-match</command></term>
<listitem>
<para>is used to match available fonts, or find fonts that match
a given pattern.</para>
<indexterm zone="fontconfig fc-match">
<primary sortas="b-fc-match">fc-match</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fc-query">
<term><command>fc-query</command></term>
<listitem>
<para>is used to query fonts files and print resulting patterns.
</para>
<indexterm zone="fontconfig fc-query">
<primary sortas="b-fc-query">fc-query</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fc-scan">
<term><command>fc-scan</command></term>
<listitem>
<para>is used to scan font files and directories, and print resulting
patterns.</para>
<indexterm zone="fontconfig fc-scan">
<primary sortas="b-fc-scan">fc-scan</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libfontconfig">
<term><filename class='libraryfile'>libfontconfig.{so,a}</filename></term>
<listitem>
<para>contains functions used by the
<application>Fontconfig</application> programs and also by other
programs to configure or customize font access.</para>
<indexterm zone="fontconfig libfontconfig">
<primary sortas="c-libfontconfig">libfontconfig.{so,a}</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>