[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[a2d546f] | 7 | <!ENTITY fontconfig-download-http "http://fontconfig.org/release/fontconfig-&fontconfig-version;.tar.gz">
|
---|
[014a693a] | 8 | <!ENTITY fontconfig-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/fontconfig-&fontconfig-version;.tar.gz">
|
---|
[d97499f] | 9 | <!ENTITY fontconfig-md5sum "2466a797d645cda5eb466080fdaec416">
|
---|
[66af3f8] | 10 | <!ENTITY fontconfig-size "747 KB">
|
---|
| 11 | <!ENTITY fontconfig-buildsize "10 MB">
|
---|
[52d29f7] | 12 | <!ENTITY fontconfig-time "0.18 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[b9ad2f9a] | 15 | <sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="fontconfig.html"?>
|
---|
[b9ad2f9a] | 21 | <title>Fontconfig-&fontconfig-version;</title>
|
---|
[8de6b187] | 22 |
|
---|
[52d29f7] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application>Fontconfig</application></title>
|
---|
[d82991f] | 25 |
|
---|
[52d29f7] | 26 | <para>The <application>Fontconfig</application> package is a library
|
---|
| 27 | for configuring and customizing font access.</para>
|
---|
[d82991f] | 28 |
|
---|
[52d29f7] | 29 | <sect3><title>Package information</title>
|
---|
| 30 | <itemizedlist spacing='compact'>
|
---|
| 31 | <listitem><para>Download (HTTP): <ulink
|
---|
| 32 | url="&fontconfig-download-http;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download (FTP): <ulink
|
---|
| 34 | url="&fontconfig-download-ftp;"/></para></listitem>
|
---|
[d97499f] | 35 | <listitem><para>Download MD5 sum: &fontconfig-md5sum;</para></listitem>
|
---|
[52d29f7] | 36 | <listitem><para>Download size: &fontconfig-size;</para></listitem>
|
---|
[a2d546f] | 37 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 38 | &fontconfig-buildsize;</para></listitem>
|
---|
| 39 | <listitem><para>Estimated build time:
|
---|
| 40 | &fontconfig-time;</para></listitem></itemizedlist>
|
---|
[d82991f] | 41 |
|
---|
[c82e999] | 42 | <note><para>The numbering system of <application>Fontconfig</application> is
|
---|
| 43 | unusual. The beta versions of the package are numbered with a 9x in the last
|
---|
| 44 | portion of the release number. This means that 2.2.96 is a beta release and
|
---|
| 45 | the most current release is of the form 2.2.3</para></note>
|
---|
[d82991f] | 46 |
|
---|
[52d29f7] | 47 | </sect3>
|
---|
| 48 |
|
---|
| 49 | <sect3><title><application>Fontconfig</application> dependencies</title>
|
---|
| 50 | <sect4><title>Required</title>
|
---|
[a2d546f] | 51 | <para><xref linkend="freetype2"/> and <xref linkend="expat"/></para>
|
---|
| 52 | </sect4>
|
---|
| 53 |
|
---|
[52d29f7] | 54 | <sect4><title>Optional</title>
|
---|
[a2d546f] | 55 | <para><xref linkend="docbook-utils"/></para>
|
---|
| 56 | </sect4>
|
---|
[52d29f7] | 57 | </sect3>
|
---|
[c82e999] | 58 |
|
---|
[52d29f7] | 59 | </sect2>
|
---|
| 60 |
|
---|
| 61 | <sect2>
|
---|
| 62 | <title>Installation of <application>Fontconfig</application></title>
|
---|
[d82991f] | 63 |
|
---|
| 64 | <para>Install <application>Fontconfig</application> by running the following
|
---|
| 65 | commands:</para>
|
---|
| 66 |
|
---|
[f9d2ee6] | 67 | <screen><userinput><command>./configure --prefix=/usr \
|
---|
| 68 | --sysconfdir=/etc --disable-docs &&
|
---|
[52d29f7] | 69 | make &&
|
---|
| 70 | make install</command></userinput></screen>
|
---|
| 71 | </sect2>
|
---|
| 72 |
|
---|
[f9d2ee6] | 73 | <sect2>
|
---|
| 74 | <title>Command explanations</title>
|
---|
| 75 |
|
---|
| 76 | <para><option>--disable-docs</option>: This switch avoids building the
|
---|
| 77 | documentation. If you wish to build the documentation using
|
---|
| 78 | <application>DocBook-utils</application>, you may need to remove the
|
---|
| 79 | <application>OpenSP</application> catalog definitions from the system
|
---|
[04af8b24] | 80 | <acronym>SGML</acronym> catalogs. Use the following command before building
|
---|
[f9d2ee6] | 81 | the package to accomplish this:</para>
|
---|
| 82 |
|
---|
[04af8b24] | 83 | <screen><userinput><command>sed -i.orig \
|
---|
| 84 | -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
|
---|
| 85 | /etc/sgml/catalog \
|
---|
[f9d2ee6] | 86 | /etc/sgml/sgml-docbook.cat</command></userinput></screen>
|
---|
| 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
[52d29f7] | 90 | <sect2>
|
---|
| 91 | <title>Configuring <application>Fontconfig</application></title>
|
---|
[d82991f] | 92 |
|
---|
[52d29f7] | 93 | <sect3><title>Config files</title>
|
---|
| 94 | <para><filename>/etc/fonts/*</filename></para>
|
---|
| 95 | </sect3>
|
---|
[d82991f] | 96 |
|
---|
[52d29f7] | 97 | <sect3><title>Configuration Information</title>
|
---|
[d82991f] | 98 |
|
---|
| 99 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
| 100 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
|
---|
[c82e999] | 101 | this file. To put a new font directory in the configuration, update the
|
---|
| 102 | <filename>/etc/fonts/local.conf</filename> file with your local information.
|
---|
| 103 | The default location of fonts in <application>Fontconfig</application> is:
|
---|
| 104 | </para>
|
---|
| 105 |
|
---|
[52d29f7] | 106 | <itemizedlist spacing='compact'>
|
---|
| 107 | <listitem><para>/usr/share/fonts</para></listitem>
|
---|
| 108 | <listitem><para>~/.fonts</para></listitem>
|
---|
| 109 | </itemizedlist>
|
---|
[d82991f] | 110 |
|
---|
[52d29f7] | 111 | <note><para><application>X</application> also includes an internal (and
|
---|
[c82e999] | 112 | older) version of <application>Fontconfig</application> and unless it is
|
---|
| 113 | explicitly disabled when building <application>XFree86</application>, the
|
---|
| 114 | internal version is created leaving two slightly incompatible libraries on
|
---|
| 115 | your system. It is recommended that you only install one version.</para></note>
|
---|
[d82991f] | 116 |
|
---|
[52d29f7] | 117 | </sect3>
|
---|
[d82991f] | 118 |
|
---|
[52d29f7] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2>
|
---|
| 122 | <title>Contents</title>
|
---|
[d82991f] | 123 |
|
---|
[52d29f7] | 124 | <para>The <application>Fontconfig</application> package contains the
|
---|
| 125 | <filename class='libraryfile'>libfontconfig</filename> library,
|
---|
| 126 | <command>fc-cache</command>, and <command>fc-list</command>.</para>
|
---|
[d82991f] | 127 |
|
---|
[52d29f7] | 128 | </sect2>
|
---|
[d82991f] | 129 |
|
---|
[52d29f7] | 130 | <sect2><title>Description</title>
|
---|
[d82991f] | 131 |
|
---|
[52d29f7] | 132 | <sect3><title>fc-cache</title>
|
---|
| 133 | <para><command>fc-cache</command> is a command to create font information
|
---|
| 134 | caches.</para></sect3>
|
---|
[d82991f] | 135 |
|
---|
[52d29f7] | 136 | <sect3><title>fc-list</title>
|
---|
| 137 | <para><command>fc-list</command> is a command to list fonts.</para></sect3>
|
---|
[d82991f] | 138 |
|
---|
[52d29f7] | 139 | </sect2>
|
---|
[8de6b187] | 140 |
|
---|
| 141 | </sect1>
|
---|