12c393a42Smrg<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
22c393a42Smrg
3a4e54154Smrg<!--
4a4e54154SmrgCopyright © 2008 Patrick Lam
5a4e54154Smrg
6a4e54154SmrgPermission to use, copy, modify, distribute, and sell this software and its
7a4e54154Smrgdocumentation for any purpose is hereby granted without fee, provided that
8a4e54154Smrgthe above copyright notice appear in all copies and that both that
9a4e54154Smrgcopyright notice and this permission notice appear in supporting
10a4e54154Smrgdocumentation, and that the name of the author(s) not be used in
11a4e54154Smrgadvertising or publicity pertaining to distribution of the software without
12a4e54154Smrgspecific, written prior permission.  The authors make no
13a4e54154Smrgrepresentations about the suitability of this software for any purpose.  It
14a4e54154Smrgis provided "as is" without express or implied warranty.
15a4e54154Smrg
16a4e54154SmrgTHE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17a4e54154SmrgINCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18a4e54154SmrgEVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19a4e54154SmrgCONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20a4e54154SmrgDATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21a4e54154SmrgTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22a4e54154SmrgPERFORMANCE OF THIS SOFTWARE.
23a4e54154Smrg-->
24a4e54154Smrg
252c393a42Smrg<!-- Process this file with docbook-to-man to generate an nroff manual
262c393a42Smrg     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
272c393a42Smrg     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
282c393a42Smrg     less'.  A typical entry in a Makefile or Makefile.am is:
292c393a42Smrg
302c393a42Smrgmanpage.1: manpage.sgml
311cc69409Smrg        docbook-to-man $< > $@
322c393a42Smrg
331cc69409Smrg
341cc69409Smrg        The docbook-to-man binary is found in the docbook-to-man package.
351cc69409Smrg        Please remember that if you create the nroff version in one of the
361cc69409Smrg        debian/rules file targets (such as build), you will need to include
371cc69409Smrg        docbook-to-man in your Build-Depends control field.
382c393a42Smrg
392c393a42Smrg  -->
402c393a42Smrg
412c393a42Smrg  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
422c393a42Smrg  <!ENTITY dhfirstname "<firstname>Patrick</firstname>">
432c393a42Smrg  <!ENTITY dhsurname   "<surname>Lam</surname>">
442c393a42Smrg  <!-- Please adjust the date whenever revising the manpage. -->
45a6844aabSmrg  <!ENTITY dhdate      "<date>Aug 13, 2008</date>">
462c393a42Smrg  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
472c393a42Smrg       allowed: see man(7), man(1). -->
482c393a42Smrg  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
492c393a42Smrg  <!ENTITY dhemail     "<email>plam@csail.mit.edu</email>">
502c393a42Smrg  <!ENTITY dhusername  "Patrick Lam">
512c393a42Smrg  <!ENTITY dhucpackage "<refentrytitle>fc-match</refentrytitle>">
522c393a42Smrg  <!ENTITY dhpackage   "fc-match">
532c393a42Smrg
542c393a42Smrg  <!ENTITY debian      "<productname>Debian</productname>">
552c393a42Smrg  <!ENTITY gnu         "<acronym>GNU</acronym>">
562c393a42Smrg  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
572c393a42Smrg]>
582c393a42Smrg
592c393a42Smrg<refentry>
602c393a42Smrg  <refentryinfo>
612c393a42Smrg    <address>
622c393a42Smrg      &dhemail;
632c393a42Smrg    </address>
642c393a42Smrg    <author>
652c393a42Smrg      &dhfirstname;
662c393a42Smrg      &dhsurname;
672c393a42Smrg    </author>
682c393a42Smrg    <copyright>
692c393a42Smrg      <year>2003</year>
702c393a42Smrg      <holder>&dhusername;</holder>
712c393a42Smrg    </copyright>
722c393a42Smrg    &dhdate;
732c393a42Smrg  </refentryinfo>
742c393a42Smrg  <refmeta>
752c393a42Smrg    &dhucpackage;
762c393a42Smrg
772c393a42Smrg    &dhsection;
782c393a42Smrg  </refmeta>
792c393a42Smrg  <refnamediv>
802c393a42Smrg    <refname>&dhpackage;</refname>
812c393a42Smrg
822c393a42Smrg    <refpurpose>match available fonts</refpurpose>
832c393a42Smrg  </refnamediv>
842c393a42Smrg  <refsynopsisdiv>
852c393a42Smrg    <cmdsynopsis>
862c393a42Smrg      <command>&dhpackage;</command>
872c393a42Smrg
88a6844aabSmrg      <arg><option>-asvVh</option></arg>
89a6844aabSmrg      <arg><option>--all</option></arg>
902c393a42Smrg      <arg><option>--sort</option></arg>
912c393a42Smrg      <arg><option>--verbose</option></arg>
92a6844aabSmrg      <group>
93a6844aabSmrg        <arg><option>-f</option> <option><replaceable>format</replaceable></option></arg>
94a6844aabSmrg        <arg><option>--format</option> <option><replaceable>format</replaceable></option></arg>
95a6844aabSmrg      </group>
962c393a42Smrg      <arg><option>--version</option></arg>
972c393a42Smrg      <arg><option>--help</option></arg>
98a6844aabSmrg      <sbr>
99a6844aabSmrg      <arg><option><replaceable>pattern</replaceable></option> <arg rep="repeat"><option><replaceable>element</replaceable></option></arg> </arg>
1001cc69409Smrg
1012c393a42Smrg     </cmdsynopsis>
1022c393a42Smrg  </refsynopsisdiv>
1032c393a42Smrg  <refsect1>
1042c393a42Smrg    <title>DESCRIPTION</title>
1052c393a42Smrg
106a6844aabSmrg    <para><command>&dhpackage;</command> matches
107a6844aabSmrg    <replaceable>pattern</replaceable> (empty
1082c393a42Smrgpattern by default) using the normal fontconfig matching rules to find
109a6844aabSmrgthe best font available.  If <option>--sort</option> is given, the sorted list of best
110a6844aabSmrgmatching fonts is displayed.
111a6844aabSmrgThe <option>--all</option> option works like
112a6844aabSmrg<option>--sort</option> except that no pruning is done on the list of fonts.</para>
113a6844aabSmrg<para>If any elements are specified, only those are printed.
114a6844aabSmrgOtherwise short file name, family, and style are printed, unless verbose
115a6844aabSmrgoutput is requested.</para>
1162c393a42Smrg  </refsect1>
1172c393a42Smrg  <refsect1>
1182c393a42Smrg    <title>OPTIONS</title>
1192c393a42Smrg
1202c393a42Smrg    <para>This program follows the usual &gnu; command line syntax,
1212c393a42Smrg      with long options starting with two dashes (`-').  A summary of
1222c393a42Smrg      options is included below.</para>
1232c393a42Smrg
1242c393a42Smrg    <variablelist>
125a6844aabSmrg      <varlistentry>
126a6844aabSmrg        <term><option>-a</option>
127a6844aabSmrg          <option>--all</option>
128a6844aabSmrg        </term>
129a6844aabSmrg        <listitem>
130a6844aabSmrg          <para>Displays sorted list of best matching fonts, but do not do any
1311cc69409Smrg                pruning on the list.</para>
132a6844aabSmrg        </listitem>
133a6844aabSmrg      </varlistentry>
134a6844aabSmrg      <varlistentry>
135a6844aabSmrg        <term><option>-s</option>
136a6844aabSmrg          <option>--sort</option>
137a6844aabSmrg        </term>
138a6844aabSmrg        <listitem>
139a6844aabSmrg          <para>Displays sorted list of best matching fonts.</para>
140a6844aabSmrg        </listitem>
141a6844aabSmrg      </varlistentry>
1422c393a42Smrg      <varlistentry>
1432c393a42Smrg        <term><option>-v</option>
1442c393a42Smrg          <option>--verbose</option>
1452c393a42Smrg        </term>
1462c393a42Smrg        <listitem>
147a6844aabSmrg          <para>Print verbose output of the whole font pattern for each match,
1481cc69409Smrg                or <replaceable>element</replaceable>s if any is
1491cc69409Smrg                provided.</para>
1502c393a42Smrg        </listitem>
1512c393a42Smrg      </varlistentry>
1522c393a42Smrg      <varlistentry>
153a6844aabSmrg        <term><option>-f</option>
154a6844aabSmrg          <option>--format</option>
1551cc69409Smrg          <option><replaceable>format</replaceable></option>
1562c393a42Smrg        </term>
1572c393a42Smrg        <listitem>
158a6844aabSmrg          <para>Format output according to the format specifier
1591cc69409Smrg          <replaceable>format</replaceable>.</para>
1602c393a42Smrg        </listitem>
1612c393a42Smrg      </varlistentry>
1622c393a42Smrg      <varlistentry>
1632c393a42Smrg        <term><option>-V</option>
1642c393a42Smrg          <option>--version</option>
1652c393a42Smrg        </term>
1662c393a42Smrg        <listitem>
1672c393a42Smrg          <para>Show version of the program and exit.</para>
1682c393a42Smrg        </listitem>
1692c393a42Smrg      </varlistentry>
1702c393a42Smrg      <varlistentry>
171a6844aabSmrg        <term><option>-h</option>
172a6844aabSmrg          <option>--help</option>
1732c393a42Smrg        </term>
1742c393a42Smrg        <listitem>
175a6844aabSmrg          <para>Show summary of options.</para>
1762c393a42Smrg        </listitem>
1772c393a42Smrg      </varlistentry>
1782c393a42Smrg      <varlistentry>
179a6844aabSmrg        <term><option><replaceable>pattern</replaceable></option>
1802c393a42Smrg        </term>
1812c393a42Smrg        <listitem>
1822c393a42Smrg          <para>Displays fonts matching
183a6844aabSmrg                <replaceable>pattern</replaceable> (uses empty pattern by default).</para>
184a6844aabSmrg        </listitem>
185a6844aabSmrg      </varlistentry>
186a6844aabSmrg      <varlistentry>
187a6844aabSmrg        <term><option><replaceable>element</replaceable></option>
188a6844aabSmrg        </term>
189a6844aabSmrg        <listitem>
190a6844aabSmrg          <para>If set, the <replaceable>element</replaceable> property
191a6844aabSmrg                is displayed for matching fonts.</para>
1922c393a42Smrg        </listitem>
1932c393a42Smrg      </varlistentry>
1942c393a42Smrg    </variablelist>
1952c393a42Smrg  </refsect1>
1962c393a42Smrg
197a4e54154Smrg  <refsect1>
198a4e54154Smrg    <title>EXAMPLES</title>
199a4e54154Smrg
200a4e54154Smrg    <variablelist>
201a4e54154Smrg      <varlistentry>
2021cc69409Smrg        <term>fc-match sans</term>
2031cc69409Smrg        <listitem><para>Display the best matching font categorized into sans-serif generic family, filtered by current locale</para></listitem>
204a4e54154Smrg      </varlistentry>
205a4e54154Smrg    </variablelist>
206a4e54154Smrg
207a4e54154Smrg    <variablelist>
208a4e54154Smrg      <varlistentry>
2091cc69409Smrg        <term>fc-match sans:lang=en</term>
2101cc69409Smrg        <listitem><para>Display the best matching font categorized into sans-serif generic family, filtered by English language</para></listitem>
211a4e54154Smrg      </varlistentry>
212a4e54154Smrg    </variablelist>
213a4e54154Smrg
214a4e54154Smrg    <variablelist>
215a4e54154Smrg      <varlistentry>
2161cc69409Smrg        <term>fc-match sans:lang=en:weight=bold</term>
2171cc69409Smrg        <listitem><para>Display the best matching font categorized into sans-serif generic family, filtered by English language and weight is bold.</para></listitem>
218a4e54154Smrg      </varlistentry>
219a4e54154Smrg    </variablelist>
220a4e54154Smrg
221a4e54154Smrg  </refsect1>
2221cc69409Smrg
2232c393a42Smrg  <refsect1>
2242c393a42Smrg    <title>SEE ALSO</title>
2252c393a42Smrg
226a6844aabSmrg    <para>
227a6844aabSmrg      <command>fc-list</command>(1)
228a6844aabSmrg      <function>FcFontMatch</function>(3)
229a6844aabSmrg      <function>FcFontSort</function>(3)
230a6844aabSmrg      <function>FcPatternFormat</function>(3)
231a6844aabSmrg      <command>fc-cat</command>(1)
232a6844aabSmrg      <command>fc-cache</command>(1)
233ca08ab68Smrg      <command>fc-pattern</command>(1)
234a6844aabSmrg      <command>fc-query</command>(1)
235ca08ab68Smrg      <command>fc-scan</command>(1)
236a6844aabSmrg    </para>
2372c393a42Smrg
2382c393a42Smrg    <para>The fontconfig user's guide, in HTML format:
2392c393a42Smrg      <filename>/usr/share/doc/fontconfig/fontconfig-user.html</filename>.</para>
2402c393a42Smrg
2412c393a42Smrg </refsect1>
2422c393a42Smrg  <refsect1>
2432c393a42Smrg    <title>AUTHOR</title>
2442c393a42Smrg
2452c393a42Smrg    <para>This manual page was updated by &dhusername; &dhemail;.</para>
2462c393a42Smrg
2472c393a42Smrg  </refsect1>
2482c393a42Smrg</refentry>
2492c393a42Smrg
2502c393a42Smrg<!-- Keep this comment at the end of the file
2512c393a42SmrgLocal variables:
2522c393a42Smrgmode: sgml
2532c393a42Smrgsgml-omittag:t
2542c393a42Smrgsgml-shorttag:t
2552c393a42Smrgsgml-minimize-attributes:nil
2562c393a42Smrgsgml-always-quote-attributes:t
2572c393a42Smrgsgml-indent-step:2
2582c393a42Smrgsgml-indent-data:t
2592c393a42Smrgsgml-parent-document:nil
2602c393a42Smrgsgml-default-dtd-file:nil
2612c393a42Smrgsgml-exposed-tags:nil
2622c393a42Smrgsgml-local-catalogs:nil
2632c393a42Smrgsgml-local-ecat-files:nil
2642c393a42SmrgEnd:
2652c393a42Smrg-->
266