glfs/general/graphlib/fontconfig.xml
Randy McMurchy e8b9dbf7a5 Updated build entities in DocBook-utils instructions; added a note to the Fontconfig instructions to have the SGMLSpm Perl module installed if DocBook-utils is installed
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3607 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-03-29 19:54:57 +00:00

198 lines
7.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://fontconfig.org/release/fontconfig-&fontconfig-version;.tar.gz">
<!-- <!ENTITY fontconfig-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/fontconfig-&fontconfig-version;.tar.gz"> -->
<!ENTITY fontconfig-download-ftp " ">
<!ENTITY fontconfig-md5sum "d5e42a27ad2f22bc5ec45f15533fc5d1">
<!ENTITY fontconfig-size "962 KB">
<!ENTITY fontconfig-buildsize "10.5 MB">
<!ENTITY fontconfig-time "0.19 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>
<indexterm zone="fontconfig">
<primary sortas="a-Fontconfig">Fontconfig</primary></indexterm>
<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 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.3.90 is a beta release and
the most current release is of the form 2.3.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><xref linkend="docbook-utils"/></para>
<note><para>If you have <application>DocBook-utils</application> installed,
you must also have <xref linkend="perl-modules"/>: SGMLSpm-1.03ii installed
also, or the <application>Fontconfig</application> build will
fail.</para></note>
</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</command></userinput></screen>
<para>Now, as the root user:</para>
<screen><userinput role='root'><command>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 command 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 \
/etc/sgml/sgml-docbook.cat</command></userinput></screen>
</sect2>
<sect2>
<title>Configuring <application>Fontconfig</application></title>
<sect3 id="fontconfig-config"><title>Config files</title>
<para><filename>/etc/fonts/* 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>
</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, create (or
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>
<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>
<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>Xorg</application> or
<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>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>fc-cache, fc-list and fc-match</seg>
<seg>libfontconfig.[so,a]</seg>
<seg>/etc/fonts and /usr/include/fontconfig</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<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-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="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>