12c393a42Smrg<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
22c393a42Smrg
32c393a42Smrg<!-- Process this file with docbook-to-man to generate an nroff manual
42c393a42Smrg     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
52c393a42Smrg     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
62c393a42Smrg     less'.  A typical entry in a Makefile or Makefile.am is:
72c393a42Smrg
82c393a42Smrgmanpage.1: manpage.sgml
91cc69409Smrg        docbook-to-man $< > $@
102c393a42Smrg
111cc69409Smrg
121cc69409Smrg        The docbook-to-man binary is found in the docbook-to-man package.
131cc69409Smrg        Please remember that if you create the nroff version in one of the
141cc69409Smrg        debian/rules file targets (such as build), you will need to include
151cc69409Smrg        docbook-to-man in your Build-Depends control field.
162c393a42Smrg
172c393a42Smrg  -->
182c393a42Smrg
192c393a42Smrg  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
202c393a42Smrg  <!ENTITY dhfirstname "<firstname>Josselin</firstname>">
212c393a42Smrg  <!ENTITY dhsurname   "<surname>Mouette</surname>">
222c393a42Smrg  <!-- Please adjust the date whenever revising the manpage. -->
23a6844aabSmrg  <!ENTITY dhdate      "<date>Aug 13, 2008</date>">
242c393a42Smrg  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
252c393a42Smrg       allowed: see man(7), man(1). -->
262c393a42Smrg  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
272c393a42Smrg  <!ENTITY dhemail     "<email>joss@debian.org</email>">
282c393a42Smrg  <!ENTITY dhusername  "Josselin Mouette">
292c393a42Smrg  <!ENTITY dhucpackage "<refentrytitle>fc-cache</refentrytitle>">
302c393a42Smrg  <!ENTITY dhpackage   "fc-cache">
312c393a42Smrg
322c393a42Smrg  <!ENTITY debian      "<productname>Debian</productname>">
332c393a42Smrg  <!ENTITY gnu         "<acronym>GNU</acronym>">
342c393a42Smrg  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
352c393a42Smrg]>
362c393a42Smrg
372c393a42Smrg<refentry>
382c393a42Smrg  <refentryinfo>
392c393a42Smrg    <address>
402c393a42Smrg      &dhemail;
412c393a42Smrg    </address>
422c393a42Smrg    <author>
432c393a42Smrg      &dhfirstname;
442c393a42Smrg      &dhsurname;
452c393a42Smrg    </author>
462c393a42Smrg    <copyright>
472c393a42Smrg      <year>2003</year>
482c393a42Smrg      <holder>&dhusername;</holder>
492c393a42Smrg    </copyright>
502c393a42Smrg    &dhdate;
512c393a42Smrg  </refentryinfo>
522c393a42Smrg  <refmeta>
532c393a42Smrg    &dhucpackage;
542c393a42Smrg
552c393a42Smrg    &dhsection;
562c393a42Smrg  </refmeta>
572c393a42Smrg  <refnamediv>
582c393a42Smrg    <refname>&dhpackage;</refname>
592c393a42Smrg
602c393a42Smrg    <refpurpose>build font information cache files</refpurpose>
612c393a42Smrg  </refnamediv>
622c393a42Smrg  <refsynopsisdiv>
632c393a42Smrg    <cmdsynopsis>
642c393a42Smrg      <command>&dhpackage;</command>
652c393a42Smrg
66953daebaSmrg      <arg><option>-EfrsvVh</option></arg>
67953daebaSmrg      <arg><option>--error-on-no-fonts</option></arg>
682c393a42Smrg      <arg><option>--force</option></arg>
69ca08ab68Smrg      <arg><option>--really-force</option></arg>
70953daebaSmrg      <group>
711cc69409Smrg        <arg><option>-y</option> <option><replaceable>dir</replaceable></option></arg>
721cc69409Smrg        <arg><option>--sysroot</option> <option><replaceable>dir</replaceable></option></arg>
73953daebaSmrg      </group>
742c393a42Smrg      <arg><option>--system-only</option></arg>
752c393a42Smrg      <arg><option>--verbose</option></arg>
762c393a42Smrg      <arg><option>--version</option></arg>
772c393a42Smrg      <arg><option>--help</option></arg>
78a6844aabSmrg      <arg rep="repeat"><option><replaceable>dir</replaceable></option></arg>
791cc69409Smrg
802c393a42Smrg     </cmdsynopsis>
812c393a42Smrg  </refsynopsisdiv>
822c393a42Smrg  <refsect1>
832c393a42Smrg    <title>DESCRIPTION</title>
842c393a42Smrg
852c393a42Smrg      <para><command>&dhpackage;</command> scans the font directories on
862c393a42Smrg        the system and builds font information cache files for
872c393a42Smrg        applications using fontconfig for their font handling.</para>
882c393a42Smrg
892c393a42Smrg      <para>If directory arguments are not given,
902c393a42Smrg        <command>&dhpackage;</command> uses each directory in the
912c393a42Smrg        current font configuration. Each directory is scanned for
922c393a42Smrg        font files readable by FreeType.  A cache is created which
932c393a42Smrg        contains properties of each font and the associated filename.
942c393a42Smrg        This cache is used to speed up application startup when using
952c393a42Smrg        the fontconfig library.</para>
962c393a42Smrg
972c393a42Smrg      <para>Note that <command>&dhpackage;</command> must be executed
982c393a42Smrg        once per architecture to generate font information customized
99a6844aabSmrg        for that architecture.</para>
1002c393a42Smrg
1012c393a42Smrg  </refsect1>
1022c393a42Smrg  <refsect1>
1032c393a42Smrg    <title>OPTIONS</title>
1042c393a42Smrg
1052c393a42Smrg    <para>This program follows the usual &gnu; command line syntax,
1062c393a42Smrg      with long options starting with two dashes (`-').  A summary of
1072c393a42Smrg      options is included below.</para>
1082c393a42Smrg
1092c393a42Smrg    <variablelist>
110953daebaSmrg      <varlistentry>
1111cc69409Smrg        <term><option>-E</option>
1121cc69409Smrg          <option>--error-on-no-fonts</option>
1131cc69409Smrg        </term>
1141cc69409Smrg        <listitem>
1151cc69409Smrg          <para>Raise an error if there are no fonts in
1161cc69409Smrg            <option><replaceable>dir</replaceable></option> or directories
1171cc69409Smrg            in the configuration if not given.</para>
1181cc69409Smrg        </listitem>
119953daebaSmrg      </varlistentry>
1202c393a42Smrg      <varlistentry>
1212c393a42Smrg        <term><option>-f</option>
1222c393a42Smrg          <option>--force</option>
1232c393a42Smrg        </term>
1242c393a42Smrg        <listitem>
1252c393a42Smrg          <para>Force re-generation of apparently up-to-date cache files,
1262c393a42Smrg            overriding the timestamp checking.</para>
1272c393a42Smrg        </listitem>
1282c393a42Smrg      </varlistentry>
129ca08ab68Smrg      <varlistentry>
130ca08ab68Smrg        <term><option>-r</option>
131ca08ab68Smrg          <option>--really-force</option>
132ca08ab68Smrg        </term>
133ca08ab68Smrg        <listitem>
134ca08ab68Smrg          <para>Erase all existing cache files and rescan.</para>
135ca08ab68Smrg        </listitem>
136ca08ab68Smrg      </varlistentry>
1372c393a42Smrg      <varlistentry>
1382c393a42Smrg        <term><option>-s</option>
1392c393a42Smrg          <option>--system-only</option>
1402c393a42Smrg        </term>
1412c393a42Smrg        <listitem>
1422c393a42Smrg          <para>Only scan system-wide directories, omitting the places
1432c393a42Smrg            located in the user's home directory.</para>
1442c393a42Smrg        </listitem>
1452c393a42Smrg      </varlistentry>
1462c393a42Smrg      <varlistentry>
1472c393a42Smrg        <term><option>-v</option>
1482c393a42Smrg          <option>--verbose</option>
1492c393a42Smrg        </term>
1502c393a42Smrg        <listitem>
1512c393a42Smrg          <para>Display status information while busy.</para>
1522c393a42Smrg        </listitem>
1532c393a42Smrg      </varlistentry>
154953daebaSmrg      <varlistentry>
1551cc69409Smrg        <term><option>-y</option>
1561cc69409Smrg          <option>-sysroot</option>
1571cc69409Smrg          <option><replaceable>dir</replaceable></option>
1581cc69409Smrg        </term>
1591cc69409Smrg        <listitem>
1601cc69409Smrg          <para>Prepend <option><replaceable>dir</replaceable></option> to all paths for scanning.</para>
1611cc69409Smrg        </listitem>
162953daebaSmrg      </varlistentry>
1632c393a42Smrg      <varlistentry>
164a6844aabSmrg        <term><option>-h</option>
1652c393a42Smrg          <option>--help</option>
1662c393a42Smrg        </term>
1672c393a42Smrg        <listitem>
1682c393a42Smrg          <para>Show summary of options.</para>
1692c393a42Smrg        </listitem>
1702c393a42Smrg      </varlistentry>
1712c393a42Smrg      <varlistentry>
1722c393a42Smrg        <term><option>-V</option>
1732c393a42Smrg          <option>--version</option>
1742c393a42Smrg        </term>
1752c393a42Smrg        <listitem>
1762c393a42Smrg          <para>Show version of the program and exit.</para>
1772c393a42Smrg        </listitem>
1782c393a42Smrg      </varlistentry>
1792c393a42Smrg      <varlistentry>
180a6844aabSmrg        <term><option><replaceable>dir</replaceable></option>
1812c393a42Smrg        </term>
1822c393a42Smrg        <listitem>
183a6844aabSmrg          <para>Directory to scan for fonts.</para>
1842c393a42Smrg        </listitem>
1852c393a42Smrg      </varlistentry>
1862c393a42Smrg    </variablelist>
1872c393a42Smrg  </refsect1>
1882c393a42Smrg
189953daebaSmrg  <refsect1>
190953daebaSmrg    <title>RETURN CODES</title>
191953daebaSmrg    <para><command>fc-cache</command> returns zero if the caches successfully generated. otherwise non-zero.</para>
192953daebaSmrg  </refsect1>
1931cc69409Smrg
1942c393a42Smrg  <refsect1>
1952c393a42Smrg    <title>FILES</title>
1962c393a42Smrg    <variablelist>
1972c393a42Smrg      <varlistentry>
198953daebaSmrg        <term><filename><replaceable>%cachedir%</replaceable>/*-<replaceable>%arch%</replaceable>.cache-%version%</filename></term>
1991cc69409Smrg        <listitem>
2001cc69409Smrg          <para>These files are generated by <command>&dhpackage;</command>
2012c393a42Smrg            and contain maps from file names to font properties. They are
2022c393a42Smrg            read by the fontconfig library at application startup to locate
2032c393a42Smrg            appropriate fonts.</para>
2041cc69409Smrg        </listitem>
2052c393a42Smrg      </varlistentry>
2062c393a42Smrg    </variablelist>
2072c393a42Smrg  </refsect1>
2082c393a42Smrg
2092c393a42Smrg  <refsect1>
2102c393a42Smrg    <title>SEE ALSO</title>
2112c393a42Smrg
212a6844aabSmrg    <para>
213a6844aabSmrg      <command>fc-cat</command>(1)
214a6844aabSmrg      <command>fc-list</command>(1)
215a6844aabSmrg      <command>fc-match</command>(1)
216ca08ab68Smrg      <command>fc-pattern</command>(1)
217a6844aabSmrg      <command>fc-query</command>(1)
218a6844aabSmrg      <command>fc-scan</command>(1)
219a6844aabSmrg    </para>
2202c393a42Smrg
2212c393a42Smrg    <para>The fontconfig user's guide, in HTML format:
2222c393a42Smrg      <filename>/usr/share/doc/fontconfig/fontconfig-user.html</filename>.</para>
2232c393a42Smrg
2242c393a42Smrg </refsect1>
2252c393a42Smrg  <refsect1>
2262c393a42Smrg    <title>AUTHOR</title>
2272c393a42Smrg
2282c393a42Smrg    <para>This manual page was written by Keith Packard
2292c393a42Smrg      <email>keithp@keithp.com</email> and &dhusername; &dhemail;.</para>
2302c393a42Smrg
2312c393a42Smrg  </refsect1>
2322c393a42Smrg</refentry>
2332c393a42Smrg
2342c393a42Smrg<!-- Keep this comment at the end of the file
2352c393a42SmrgLocal variables:
2362c393a42Smrgmode: sgml
2372c393a42Smrgsgml-omittag:t
2382c393a42Smrgsgml-shorttag:t
2392c393a42Smrgsgml-minimize-attributes:nil
2402c393a42Smrgsgml-always-quote-attributes:t
2412c393a42Smrgsgml-indent-step:2
2422c393a42Smrgsgml-indent-data:t
2432c393a42Smrgsgml-parent-document:nil
2442c393a42Smrgsgml-default-dtd-file:nil
2452c393a42Smrgsgml-exposed-tags:nil
2462c393a42Smrgsgml-local-catalogs:nil
2472c393a42Smrgsgml-local-ecat-files:nil
2482c393a42SmrgEnd:
2492c393a42Smrg-->
250