glfs/general/graphlib/fontconfig.xml
Randy McMurchy f9d2ee6cc6 Added documentation build instructions to Fontconfig
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2616 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-08-16 04:21:41 +00:00

145 lines
5.0 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY fontconfig-download-http "http://freedesktop.org/~fontconfig/release/fontconfig-&fontconfig-version;.tar.gz">
<!ENTITY fontconfig-download-ftp "ftp://ftp.us.sinuspl.net/pub/src/fontconfig-&fontconfig-version;.tar.gz">
<!ENTITY fontconfig-size "727 KB">
<!ENTITY fontconfig-buildsize "11 MB">
<!ENTITY fontconfig-time "0.18 SBU">
]>
<sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="fontconfig.html"?>
<title>Fontconfig-&fontconfig-version;</title>
<sect2>
<title>Introduction to <application>Fontconfig</application></title>
<para>The <application>Fontconfig</application> package is a library
for configuring and customizing font access.</para>
<sect3><title>Package information</title>
<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 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.2.96 is a beta release and
the most current release is of the form 2.2.3</para></note>
</sect3>
<sect3><title><application>Fontconfig</application> dependencies</title>
<sect4><title>Required</title>
<para><xref linkend="freetype2"/> and <xref linkend="expat"/></para></sect4>
<sect4><title>Optional</title>
<para>
<xref linkend="docbook-utils"/>
</para></sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application>Fontconfig</application></title>
<para>Install <application>Fontconfig</application> by running the following
commands:</para>
<screen><userinput><command>./configure --prefix=/usr \
--sysconfdir=/etc --disable-docs &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
</sect2>
<sect2>
<title>Command explanations</title>
<para><option>--disable-docs</option>: This switch avoids building the
documentation. If you wish to build the documentation using
<application>DocBook-utils</application>, you may need to remove the
<application>OpenSP</application> catalog definitions from the system
<acronym>SGML</acronym> catalogs. Use the following commands before building
the package to accomplish this:</para>
<screen><userinput><command>sed -i.orig -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
/etc/sgml/catalog &amp;&amp;
sed -i.orig -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
/etc/sgml/sgml-docbook.cat</command></userinput></screen>
<para>If desired, restore the orginal <acronym>SGML</acronym> catalogs after
the build is complete using the following commands:</para>
<screen><userinput><command>cp /etc/sgml/catalog.orig /etc/sgml/catalog &amp;&amp;
cp /etc/sgml/sgml-docbook.cat.orig /etc/sgml/sgml-docbook.cat</command></userinput></screen>
</sect2>
<sect2>
<title>Configuring <application>Fontconfig</application></title>
<sect3><title>Config files</title>
<para><filename>/etc/fonts/*</filename></para>
</sect3>
<sect3><title>Configuration Information</title>
<para>The configuration file for <application>Fontconfig</application> is
<filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
this file. To put a new font directory in the configuration, update the
<filename>/etc/fonts/local.conf</filename> file with your local information.
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>
<note><para><application>X</application> also includes an internal (and
older) version of <application>Fontconfig</application> and unless it is
explicitly disabled when building <application>XFree86</application>, the
internal version is created leaving two slightly incompatible libraries on
your system. It is recommended that you only install one version.</para></note>
</sect3>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application>Fontconfig</application> package contains the
<filename class='libraryfile'>libfontconfig</filename> library,
<command>fc-cache</command>, and <command>fc-list</command>.</para>
</sect2>
<sect2><title>Description</title>
<sect3><title>fc-cache</title>
<para><command>fc-cache</command> is a command to create font information
caches.</para></sect3>
<sect3><title>fc-list</title>
<para><command>fc-list</command> is a command to list fonts.</para></sect3>
</sect2>
</sect1>