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