]> git.wh0rd.org - fontconfig.git/blob - fc-query/fc-query.sgml
Handle -h and --help according to GNU Coding Standards (#17104)
[fontconfig.git] / fc-query / fc-query.sgml
1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2
3 <!-- Process this file with docbook-to-man to generate an nroff manual
4 page: `docbook-to-man manpage.sgml > manpage.1'. You may view
5 the manual page with: `docbook-to-man manpage.sgml | nroff -man |
6 less'. A typical entry in a Makefile or Makefile.am is:
7
8 manpage.1: manpage.sgml
9 docbook-to-man $< > $@
10
11
12 The docbook-to-man binary is found in the docbook-to-man package.
13 Please remember that if you create the nroff version in one of the
14 debian/rules file targets (such as build), you will need to include
15 docbook-to-man in your Build-Depends control field.
16
17 -->
18
19 <!-- Fill in your name for FIRSTNAME and SURNAME. -->
20 <!ENTITY dhfirstname "<firstname>Behdad</firstname>">
21 <!ENTITY dhsurname "<surname>Esfahbod</surname>">
22 <!-- Please adjust the date whenever revising the manpage. -->
23 <!ENTITY dhdate "<date>Aug 13, 2008</date>">
24 <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
25 allowed: see man(7), man(1). -->
26 <!ENTITY dhsection "<manvolnum>1</manvolnum>">
27 <!ENTITY dhemail "<email>behdad@behdad.org</email>">
28 <!ENTITY dhusername "Behdad Esfahbod">
29 <!ENTITY dhucpackage "<refentrytitle>fc-query</refentrytitle>">
30 <!ENTITY dhpackage "fc-query">
31
32 <!ENTITY gnu "<acronym>GNU</acronym>">
33 <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
34 ]>
35
36 <refentry>
37 <refentryinfo>
38 <address>
39 &dhemail;
40 </address>
41 <author>
42 &dhfirstname;
43 &dhsurname;
44 </author>
45 <copyright>
46 <year>2008</year>
47 <holder>&dhusername;</holder>
48 </copyright>
49 &dhdate;
50 </refentryinfo>
51 <refmeta>
52 &dhucpackage;
53
54 &dhsection;
55 </refmeta>
56 <refnamediv>
57 <refname>&dhpackage;</refname>
58
59 <refpurpose>query font files</refpurpose>
60 </refnamediv>
61 <refsynopsisdiv>
62 <cmdsynopsis>
63 <command>&dhpackage;</command>
64
65 <arg><option>-Vh</option></arg>
66 <arg><option>--version</option></arg>
67 <arg><option>--help</option></arg>
68 <sbr>
69 <group>
70 <arg><option>-i</option> <option><replaceable>index</replaceable></option></arg>
71 <arg><option>--index</option> <option><replaceable>index</replaceable></option></arg>
72 </group>
73 <arg choice="req" rep="repeat"><option><replaceable>font-file</replaceable></option></arg>
74
75 </cmdsynopsis>
76 </refsynopsisdiv>
77 <refsect1>
78 <title>DESCRIPTION</title>
79
80 <para><command>&dhpackage;</command> queries
81 <replaceable>font-file</replaceable>(s) using the normal fontconfig
82 rules and prints out font pattern for each face found.
83 If <option>--index</option> is given, only one face of each file is
84 queried, otherwise all faces are queried.</para>
85
86 </refsect1>
87 <refsect1>
88 <title>OPTIONS</title>
89
90 <para>This program follows the usual &gnu; command line syntax,
91 with long options starting with two dashes (`-'). A summary of
92 options is included below.</para>
93
94 <variablelist>
95 <varlistentry>
96 <term><option>-h</option>
97 <option>--help</option>
98 </term>
99 <listitem>
100 <para>Show summary of options.</para>
101 </listitem>
102 </varlistentry>
103 <varlistentry>
104 <term><option>-V</option>
105 <option>--version</option>
106 </term>
107 <listitem>
108 <para>Show version of the program and exit.</para>
109 </listitem>
110 </varlistentry>
111 <varlistentry>
112 <term><option>-i</option>
113 <option>--index</option>
114 <option><replaceable>index</replaceable></option>
115 </term>
116 <listitem>
117 <para>Only query face indexed <replaceable>index</replaceable> of
118 each file.</para>
119 </listitem>
120 </varlistentry>
121 <varlistentry>
122 <term><option><replaceable>font-file</replaceable></option>
123 </term>
124 <listitem>
125 <para>Query <replaceable>font-file</replaceable> for font faces.</para>
126 </listitem>
127 </varlistentry>
128 </variablelist>
129 </refsect1>
130
131 <refsect1>
132 <title>RETURN CODES</title>
133 <para><command>fc-query</command> returns error code 0 for successful parsing,
134 or 1 if any errors occured or if at least one font face could not be opened.</para>
135 </refsect1>
136
137 <refsect1>
138 <title>SEE ALSO</title>
139
140 <para>
141 <command>fc-cat</command>(1)
142 <command>fc-cache</command>(1)
143 <command>fc-list</command>(1)
144 <command>fc-match</command>(1)
145 </para>
146
147 <para>The fontconfig user's guide, in HTML format:
148 <filename>/usr/share/doc/fontconfig/fontconfig-user.html</filename>.</para>
149
150 </refsect1>
151 <refsect1>
152 <title>AUTHOR</title>
153
154 <para>This manual page was updated by &dhusername; &dhemail;.</para>
155
156 </refsect1>
157 </refentry>
158
159 <!-- Keep this comment at the end of the file
160 Local variables:
161 mode: sgml
162 sgml-omittag:t
163 sgml-shorttag:t
164 sgml-minimize-attributes:nil
165 sgml-always-quote-attributes:t
166 sgml-indent-step:2
167 sgml-indent-data:t
168 sgml-parent-document:nil
169 sgml-default-dtd-file:nil
170 sgml-exposed-tags:nil
171 sgml-local-catalogs:nil
172 sgml-local-ecat-files:nil
173 End:
174 -->