glfs/general/graphlib/fontconfig.xml
Bruce Dubbs 52d29f7a42 XML Updates to Part III from DJ
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2304 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-06-12 22:56:28 +00:00

128 lines
6.2 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;">
<?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.90 is a beta release and the most current release is of the
form 2.2.1</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>
<ulink url="http://sources.redhat.com/docbook-tools/">docbook-utils</ulink>
</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 &amp;&amp;
make &amp;&amp;
make install</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>
<para>Because we have not built <application>XFree86</application> yet, put the following directory entries
into <filename>/etc/fonts/local.conf</filename>, inside the fontconfig
tags:</para>
<screen><userinput><command>sed -i -e '/^&lt;\/fontconfig&gt;/i\
&lt;dir&gt;/usr/X11R6/lib/X11/fonts/TTF&lt;/dir&gt;\
&lt;dir&gt;/usr/X11R6/lib/X11/fonts/Type1&lt;/dir&gt;\
&lt;dir&gt;/usr/X11R6/lib/X11/fonts/truetype&lt;/dir&gt;' /etc/fonts/local.conf</command></userinput></screen>
<para>The <application>Fontconfig</application> program will automatically search the above directories
and all subdirectories for needed fonts.</para>
<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>