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>
30 <refname>FcFreeTypeCharIndex</refname>
31 <refpurpose>map Unicode to glyph id</refpurpose>
36 #include <fontconfig.h>
37 #include <fcfreetype.h>
40 <funcdef>FT_UInt <function>FcFreeTypeCharIndex</function></funcdef>
41 <paramdef>FT_Face <parameter>face</parameter></paramdef>
42 <paramdef>FcChar32 <parameter>ucs4</parameter></paramdef>
46 <refsect1><title>Description</title>
48 Maps a Unicode char to a glyph index. This function uses information from
49 several possible underlying encoding tables to work around broken fonts.
50 As a result, this function isn't designed to be used in performance
51 sensitive areas; results from this function are intended to be cached by
52 higher level functions.
55 <refsect1><title>Version</title>
57 Fontconfig version &version;
62 fontconfig/doc/func.sgml
64 Copyright © 2003 Keith Packard
66 Permission to use, copy, modify, distribute, and sell this software and its
67 documentation for any purpose is hereby granted without fee, provided that
68 the above copyright notice appear in all copies and that both that
69 copyright notice and this permission notice appear in supporting
70 documentation, and that the name of the author(s) not be used in
71 advertising or publicity pertaining to distribution of the software without
72 specific, written prior permission. The authors make no
73 representations about the suitability of this software for any purpose. It
74 is provided "as is" without express or implied warranty.
76 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
77 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
78 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
79 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
80 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
81 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
82 PERFORMANCE OF THIS SOFTWARE.
84 <refentry id="FcFreeTypeCharSet">
86 <refentrytitle>FcFreeTypeCharSet</refentrytitle>
87 <manvolnum>3</manvolnum>
90 <refname>FcFreeTypeCharSet</refname>
91 <refpurpose>compute Unicode coverage</refpurpose>
96 #include <fontconfig.h>
97 #include <fcfreetype.h>
100 <funcdef>FcCharSet * <function>FcFreeTypeCharSet</function></funcdef>
101 <paramdef>FT_Face <parameter>face</parameter></paramdef>
102 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
106 <refsect1><title>Description</title>
108 Scans a FreeType face and returns the set of encoded Unicode chars. This scans
109 several encoding tables to build as complete a list as possible.
110 If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
111 not in 'blanks' are not placed in the returned FcCharSet.
114 <refsect1><title>Version</title>
116 Fontconfig version &version;
121 fontconfig/doc/func.sgml
123 Copyright © 2003 Keith Packard
125 Permission to use, copy, modify, distribute, and sell this software and its
126 documentation for any purpose is hereby granted without fee, provided that
127 the above copyright notice appear in all copies and that both that
128 copyright notice and this permission notice appear in supporting
129 documentation, and that the name of the author(s) not be used in
130 advertising or publicity pertaining to distribution of the software without
131 specific, written prior permission. The authors make no
132 representations about the suitability of this software for any purpose. It
133 is provided "as is" without express or implied warranty.
135 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
136 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
137 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
138 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
139 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
140 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
141 PERFORMANCE OF THIS SOFTWARE.
143 <refentry id="FcFreeTypeCharSetAndSpacing">
145 <refentrytitle>FcFreeTypeCharSetAndSpacing</refentrytitle>
146 <manvolnum>3</manvolnum>
149 <refname>FcFreeTypeCharSetAndSpacing</refname>
150 <refpurpose>compute Unicode coverage and spacing type</refpurpose>
155 #include <fontconfig.h>
156 #include <fcfreetype.h>
159 <funcdef>FcCharSet * <function>FcFreeTypeCharSetAndSpacing</function></funcdef>
160 <paramdef>FT_Face <parameter>face</parameter></paramdef>
161 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
162 <paramdef>int *<parameter>spacing</parameter></paramdef>
166 <refsect1><title>Description</title>
168 Scans a FreeType face and returns the set of encoded Unicode chars.
170 several encoding tables to build as complete a list as possible.
171 If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
172 not in 'blanks' are not placed in the returned FcCharSet.
173 <parameter>spacing</parameter> receives the computed spacing type of the
174 font, one of FC_MONO for a font where all glyphs have the same width,
175 FC_DUAL, where the font has glyphs in precisely two widths, one twice as
176 wide as the other, or FC_PROPORTIONAL where the font has glyphs of many
180 <refsect1><title>Version</title>
182 Fontconfig version &version;
187 fontconfig/doc/func.sgml
189 Copyright © 2003 Keith Packard
191 Permission to use, copy, modify, distribute, and sell this software and its
192 documentation for any purpose is hereby granted without fee, provided that
193 the above copyright notice appear in all copies and that both that
194 copyright notice and this permission notice appear in supporting
195 documentation, and that the name of the author(s) not be used in
196 advertising or publicity pertaining to distribution of the software without
197 specific, written prior permission. The authors make no
198 representations about the suitability of this software for any purpose. It
199 is provided "as is" without express or implied warranty.
201 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
202 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
203 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
204 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
205 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
206 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
207 PERFORMANCE OF THIS SOFTWARE.
209 <refentry id="FcFreeTypeQuery">
211 <refentrytitle>FcFreeTypeQuery</refentrytitle>
212 <manvolnum>3</manvolnum>
215 <refname>FcFreeTypeQuery</refname>
216 <refpurpose>compute pattern from font file (and index)</refpurpose>
221 #include <fontconfig.h>
222 #include <fcfreetype.h>
225 <funcdef>FcPattern * <function>FcFreeTypeQuery</function></funcdef>
226 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
227 <paramdef>int <parameter>id</parameter></paramdef>
228 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
229 <paramdef>int *<parameter>count</parameter></paramdef>
233 <refsect1><title>Description</title>
235 Constructs a pattern representing the 'id'th font in 'file'. The number
236 of fonts in 'file' is returned in 'count'.
239 <refsect1><title>Version</title>
241 Fontconfig version &version;
246 fontconfig/doc/func.sgml
248 Copyright © 2003 Keith Packard
250 Permission to use, copy, modify, distribute, and sell this software and its
251 documentation for any purpose is hereby granted without fee, provided that
252 the above copyright notice appear in all copies and that both that
253 copyright notice and this permission notice appear in supporting
254 documentation, and that the name of the author(s) not be used in
255 advertising or publicity pertaining to distribution of the software without
256 specific, written prior permission. The authors make no
257 representations about the suitability of this software for any purpose. It
258 is provided "as is" without express or implied warranty.
260 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
261 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
262 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
263 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
264 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
265 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
266 PERFORMANCE OF THIS SOFTWARE.
268 <refentry id="FcFreeTypeQueryFace">
270 <refentrytitle>FcFreeTypeQueryFace</refentrytitle>
271 <manvolnum>3</manvolnum>
274 <refname>FcFreeTypeQueryFace</refname>
275 <refpurpose>compute pattern from FT_Face</refpurpose>
280 #include <fontconfig.h>
281 #include <fcfreetype.h>
284 <funcdef>FcPattern * <function>FcFreeTypeQueryFace</function></funcdef>
285 <paramdef>const FT_Face <parameter>face</parameter></paramdef>
286 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
287 <paramdef>int <parameter>id</parameter></paramdef>
288 <paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
292 <refsect1><title>Description</title>
294 Constructs a pattern representing 'face'. 'file' and 'id' are used solely as
295 data for pattern elements (FC_FILE, FC_INDEX and sometimes FC_FAMILY).
298 <refsect1><title>Version</title>
300 Fontconfig version &version;