[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 |
|
---|
| 7 | <!ENTITY fontconfig-download-http "http://freedesktop.org/~fontconfig/release/fontconfig-&fontconfig-version;.tar.gz">
|
---|
[7ef22cff] | 8 | <!ENTITY fontconfig-download-ftp " ">
|
---|
[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>
|
---|
| 35 | <listitem><para>Estimated Disk space required:
|
---|
| 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>
|
---|
| 49 | <para><xref linkend="freetype2"/> and <xref linkend="expat"/></para></sect4>
|
---|
| 50 | <sect4><title>Optional</title>
|
---|
| 51 | <para>
|
---|
[da4aff6] | 52 | <xref linkend="docbook-utils"/>
|
---|
[52d29f7] | 53 | </para></sect4>
|
---|
| 54 | </sect3>
|
---|
[c82e999] | 55 |
|
---|
[52d29f7] | 56 | </sect2>
|
---|
| 57 |
|
---|
| 58 | <sect2>
|
---|
| 59 | <title>Installation of <application>Fontconfig</application></title>
|
---|
[d82991f] | 60 |
|
---|
| 61 | <para>Install <application>Fontconfig</application> by running the following
|
---|
| 62 | commands:</para>
|
---|
| 63 |
|
---|
[f9d2ee6] | 64 | <screen><userinput><command>./configure --prefix=/usr \
|
---|
| 65 | --sysconfdir=/etc --disable-docs &&
|
---|
[52d29f7] | 66 | make &&
|
---|
| 67 | make install</command></userinput></screen>
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
[f9d2ee6] | 70 | <sect2>
|
---|
| 71 | <title>Command explanations</title>
|
---|
| 72 |
|
---|
| 73 | <para><option>--disable-docs</option>: This switch avoids building the
|
---|
| 74 | documentation. If you wish to build the documentation using
|
---|
| 75 | <application>DocBook-utils</application>, you may need to remove the
|
---|
| 76 | <application>OpenSP</application> catalog definitions from the system
|
---|
[04af8b24] | 77 | <acronym>SGML</acronym> catalogs. Use the following command before building
|
---|
[f9d2ee6] | 78 | the package to accomplish this:</para>
|
---|
| 79 |
|
---|
[04af8b24] | 80 | <screen><userinput><command>sed -i.orig \
|
---|
| 81 | -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
|
---|
| 82 | /etc/sgml/catalog \
|
---|
[f9d2ee6] | 83 | /etc/sgml/sgml-docbook.cat</command></userinput></screen>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
[52d29f7] | 87 | <sect2>
|
---|
| 88 | <title>Configuring <application>Fontconfig</application></title>
|
---|
[d82991f] | 89 |
|
---|
[52d29f7] | 90 | <sect3><title>Config files</title>
|
---|
| 91 | <para><filename>/etc/fonts/*</filename></para>
|
---|
| 92 | </sect3>
|
---|
[d82991f] | 93 |
|
---|
[52d29f7] | 94 | <sect3><title>Configuration Information</title>
|
---|
[d82991f] | 95 |
|
---|
| 96 | <para>The configuration file for <application>Fontconfig</application> is
|
---|
| 97 | <filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
|
---|
[c82e999] | 98 | this file. To put a new font directory in the configuration, update the
|
---|
| 99 | <filename>/etc/fonts/local.conf</filename> file with your local information.
|
---|
| 100 | The default location of fonts in <application>Fontconfig</application> is:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
[52d29f7] | 103 | <itemizedlist spacing='compact'>
|
---|
| 104 | <listitem><para>/usr/share/fonts</para></listitem>
|
---|
| 105 | <listitem><para>~/.fonts</para></listitem>
|
---|
| 106 | </itemizedlist>
|
---|
[d82991f] | 107 |
|
---|
[52d29f7] | 108 | <note><para><application>X</application> also includes an internal (and
|
---|
[c82e999] | 109 | older) version of <application>Fontconfig</application> and unless it is
|
---|
| 110 | explicitly disabled when building <application>XFree86</application>, the
|
---|
| 111 | internal version is created leaving two slightly incompatible libraries on
|
---|
| 112 | your system. It is recommended that you only install one version.</para></note>
|
---|
[d82991f] | 113 |
|
---|
[52d29f7] | 114 | </sect3>
|
---|
[d82991f] | 115 |
|
---|
[52d29f7] | 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2>
|
---|
| 119 | <title>Contents</title>
|
---|
[d82991f] | 120 |
|
---|
[52d29f7] | 121 | <para>The <application>Fontconfig</application> package contains the
|
---|
| 122 | <filename class='libraryfile'>libfontconfig</filename> library,
|
---|
| 123 | <command>fc-cache</command>, and <command>fc-list</command>.</para>
|
---|
[d82991f] | 124 |
|
---|
[52d29f7] | 125 | </sect2>
|
---|
[d82991f] | 126 |
|
---|
[52d29f7] | 127 | <sect2><title>Description</title>
|
---|
[d82991f] | 128 |
|
---|
[52d29f7] | 129 | <sect3><title>fc-cache</title>
|
---|
| 130 | <para><command>fc-cache</command> is a command to create font information
|
---|
| 131 | caches.</para></sect3>
|
---|
[d82991f] | 132 |
|
---|
[52d29f7] | 133 | <sect3><title>fc-list</title>
|
---|
| 134 | <para><command>fc-list</command> is a command to list fonts.</para></sect3>
|
---|
[d82991f] | 135 |
|
---|
[52d29f7] | 136 | </sect2>
|
---|
[8de6b187] | 137 |
|
---|
| 138 | </sect1>
|
---|