2 fontconfig/doc/func.sgml
4 Copyright © 2003 Keith Packard
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
10 documentation, and that the name of the author(s) not be used in
11 advertising or publicity pertaining to distribution of the software without
12 specific, written prior permission. The authors make no
13 representations about the suitability of this software for any purpose. It
14 is provided "as is" without express or implied warranty.
16 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 PERFORMANCE OF THIS SOFTWARE.
24 <refentry id="FcFreeTypeCharIndex">
26 <refentrytitle>FcFreeTypeCharIndex</refentrytitle>
27 <manvolnum>3</manvolnum>
28 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
31 <refname>FcFreeTypeCharIndex</refname>
32 <refpurpose>map Unicode to glyph id</refpurpose>
37 #include <fontconfig.h>
38 #include <fcfreetype.h>
41 <funcdef>FT_UInt <function>FcFreeTypeCharIndex</function></funcdef>
42 <paramdef>FT_Face <parameter>face</parameter></paramdef>
43 <paramdef>FcChar32 <parameter>ucs4</parameter></paramdef>
47 <refsect1><title>Description</title>
49 Maps a Unicode char to a glyph index. This function uses information from
50 several possible underlying encoding tables to work around broken fonts.
51 As a result, this function isn't designed to be used in performance
52 sensitive areas; results from this function are intended to be cached by
53 higher level functions.
58 fontconfig/doc/func.sgml
60 Copyright © 2003 Keith Packard
62 Permission to use, copy, modify, distribute, and sell this software and its
63 documentation for any purpose is hereby granted without fee, provided that
64 the above copyright notice appear in all copies and that both that
65 copyright notice and this permission notice appear in supporting
66 documentation, and that the name of the author(s) not be used in
67 advertising or publicity pertaining to distribution of the software without
68 specific, written prior permission. The authors make no
69 representations about the suitability of this software for any purpose. It
70 is provided "as is" without express or implied warranty.
72 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
73 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
74 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
75 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
76 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
77 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
78 PERFORMANCE OF THIS SOFTWARE.
80 <refentry id="FcFreeTypeCharSet">
82 <refentrytitle>FcFreeTypeCharSet</refentrytitle>
83 <manvolnum>3</manvolnum>
84 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
87 <refname>FcFreeTypeCharSet</refname>
88 <refpurpose>compute Unicode coverage</refpurpose>
93 #include <fontconfig.h>
94 #include <fcfreetype.h>
97 <funcdef>FcCharSet * <function>FcFreeTypeCharSet</function></funcdef>
98 <paramdef>FT_Face <parameter>face</parameter></paramdef>
99 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
103 <refsect1><title>Description</title>
105 Scans a FreeType face and returns the set of encoded Unicode chars.
106 FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
107 accepted only for compatibility with older code.
112 fontconfig/doc/func.sgml
114 Copyright © 2003 Keith Packard
116 Permission to use, copy, modify, distribute, and sell this software and its
117 documentation for any purpose is hereby granted without fee, provided that
118 the above copyright notice appear in all copies and that both that
119 copyright notice and this permission notice appear in supporting
120 documentation, and that the name of the author(s) not be used in
121 advertising or publicity pertaining to distribution of the software without
122 specific, written prior permission. The authors make no
123 representations about the suitability of this software for any purpose. It
124 is provided "as is" without express or implied warranty.
126 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
127 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
128 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
129 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
130 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
131 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
132 PERFORMANCE OF THIS SOFTWARE.
134 <refentry id="FcFreeTypeCharSetAndSpacing">
136 <refentrytitle>FcFreeTypeCharSetAndSpacing</refentrytitle>
137 <manvolnum>3</manvolnum>
138 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
141 <refname>FcFreeTypeCharSetAndSpacing</refname>
142 <refpurpose>compute Unicode coverage and spacing type</refpurpose>
147 #include <fontconfig.h>
148 #include <fcfreetype.h>
151 <funcdef>FcCharSet * <function>FcFreeTypeCharSetAndSpacing</function></funcdef>
152 <paramdef>FT_Face <parameter>face</parameter></paramdef>
153 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
154 <paramdef>int *<parameter>spacing</parameter></paramdef>
158 <refsect1><title>Description</title>
160 Scans a FreeType face and returns the set of encoded Unicode chars.
161 FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
162 accepted only for compatibility with older code.
163 <parameter>spacing</parameter> receives the computed spacing type of the
164 font, one of FC_MONO for a font where all glyphs have the same width,
165 FC_DUAL, where the font has glyphs in precisely two widths, one twice as
166 wide as the other, or FC_PROPORTIONAL where the font has glyphs of many
172 fontconfig/doc/func.sgml
174 Copyright © 2003 Keith Packard
176 Permission to use, copy, modify, distribute, and sell this software and its
177 documentation for any purpose is hereby granted without fee, provided that
178 the above copyright notice appear in all copies and that both that
179 copyright notice and this permission notice appear in supporting
180 documentation, and that the name of the author(s) not be used in
181 advertising or publicity pertaining to distribution of the software without
182 specific, written prior permission. The authors make no
183 representations about the suitability of this software for any purpose. It
184 is provided "as is" without express or implied warranty.
186 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
187 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
188 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
189 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
190 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
191 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
192 PERFORMANCE OF THIS SOFTWARE.
194 <refentry id="FcFreeTypeQuery">
196 <refentrytitle>FcFreeTypeQuery</refentrytitle>
197 <manvolnum>3</manvolnum>
198 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
201 <refname>FcFreeTypeQuery</refname>
202 <refpurpose>compute pattern from font file (and index)</refpurpose>
207 #include <fontconfig.h>
208 #include <fcfreetype.h>
211 <funcdef>FcPattern * <function>FcFreeTypeQuery</function></funcdef>
212 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
213 <paramdef>int <parameter>id</parameter></paramdef>
214 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
215 <paramdef>int *<parameter>count</parameter></paramdef>
219 <refsect1><title>Description</title>
221 Constructs a pattern representing the 'id'th face in 'file'. The number
222 of faces in 'file' is returned in 'count'.
223 FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
224 accepted only for compatibility with older code.
229 fontconfig/doc/func.sgml
231 Copyright © 2003 Keith Packard
233 Permission to use, copy, modify, distribute, and sell this software and its
234 documentation for any purpose is hereby granted without fee, provided that
235 the above copyright notice appear in all copies and that both that
236 copyright notice and this permission notice appear in supporting
237 documentation, and that the name of the author(s) not be used in
238 advertising or publicity pertaining to distribution of the software without
239 specific, written prior permission. The authors make no
240 representations about the suitability of this software for any purpose. It
241 is provided "as is" without express or implied warranty.
243 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
244 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
245 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
246 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
247 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
248 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
249 PERFORMANCE OF THIS SOFTWARE.
251 <refentry id="FcFreeTypeQueryAll">
253 <refentrytitle>FcFreeTypeQueryAll</refentrytitle>
254 <manvolnum>3</manvolnum>
255 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
258 <refname>FcFreeTypeQueryAll</refname>
259 <refpurpose>compute all patterns from font file (and index)</refpurpose>
264 #include <fontconfig.h>
265 #include <fcfreetype.h>
268 <funcdef>unsigned int <function>FcFreeTypeQueryAll</function></funcdef>
269 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
270 <paramdef>int <parameter>id</parameter></paramdef>
271 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
272 <paramdef>int *<parameter>count</parameter></paramdef>
273 <paramdef>FcFontSet *<parameter>set</parameter></paramdef>
277 <refsect1><title>Description</title>
279 Constructs patterns found in 'file'.
280 If id is -1, then all patterns found in 'file' are added to 'set'.
281 Otherwise, this function works exactly like FcFreeTypeQuery().
282 The number of faces in 'file' is returned in 'count'.
283 The number of patterns added to 'set' is returned.
284 FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
285 accepted only for compatibility with older code.
288 <refsect1><title>Since</title>
289 <para>version 2.12.91</para>
293 fontconfig/doc/func.sgml
295 Copyright © 2003 Keith Packard
297 Permission to use, copy, modify, distribute, and sell this software and its
298 documentation for any purpose is hereby granted without fee, provided that
299 the above copyright notice appear in all copies and that both that
300 copyright notice and this permission notice appear in supporting
301 documentation, and that the name of the author(s) not be used in
302 advertising or publicity pertaining to distribution of the software without
303 specific, written prior permission. The authors make no
304 representations about the suitability of this software for any purpose. It
305 is provided "as is" without express or implied warranty.
307 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
308 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
309 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
310 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
311 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
312 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
313 PERFORMANCE OF THIS SOFTWARE.
315 <refentry id="FcFreeTypeQueryFace">
317 <refentrytitle>FcFreeTypeQueryFace</refentrytitle>
318 <manvolnum>3</manvolnum>
319 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
322 <refname>FcFreeTypeQueryFace</refname>
323 <refpurpose>compute pattern from FT_Face</refpurpose>
328 #include <fontconfig.h>
329 #include <fcfreetype.h>
332 <funcdef>FcPattern * <function>FcFreeTypeQueryFace</function></funcdef>
333 <paramdef>const FT_Face <parameter>face</parameter></paramdef>
334 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
335 <paramdef>int <parameter>id</parameter></paramdef>
336 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
340 <refsect1><title>Description</title>
342 Constructs a pattern representing 'face'. 'file' and 'id' are used solely as
343 data for pattern elements (FC_FILE, FC_INDEX and sometimes FC_FAMILY).
344 FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
345 accepted only for compatibility with older code.