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="FcFontSetCreate">
26 <refentrytitle>FcFontSetCreate</refentrytitle>
27 <manvolnum>3</manvolnum>
28 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
31 <refname>FcFontSetCreate</refname>
32 <refpurpose>Create a font set</refpurpose>
37 #include <fontconfig/fontconfig.h>
40 <funcdef>FcFontSet * <function>FcFontSetCreate</function></funcdef>
41 <paramdef>void<parameter></parameter></paramdef>
45 <refsect1><title>Description</title>
47 Creates an empty font set.
52 fontconfig/doc/func.sgml
54 Copyright © 2003 Keith Packard
56 Permission to use, copy, modify, distribute, and sell this software and its
57 documentation for any purpose is hereby granted without fee, provided that
58 the above copyright notice appear in all copies and that both that
59 copyright notice and this permission notice appear in supporting
60 documentation, and that the name of the author(s) not be used in
61 advertising or publicity pertaining to distribution of the software without
62 specific, written prior permission. The authors make no
63 representations about the suitability of this software for any purpose. It
64 is provided "as is" without express or implied warranty.
66 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
67 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
68 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
69 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
70 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
71 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
72 PERFORMANCE OF THIS SOFTWARE.
74 <refentry id="FcFontSetDestroy">
76 <refentrytitle>FcFontSetDestroy</refentrytitle>
77 <manvolnum>3</manvolnum>
78 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
81 <refname>FcFontSetDestroy</refname>
82 <refpurpose>Destroy a font set</refpurpose>
87 #include <fontconfig/fontconfig.h>
90 <funcdef>void <function>FcFontSetDestroy</function></funcdef>
91 <paramdef>FcFontSet *<parameter>s</parameter></paramdef>
95 <refsect1><title>Description</title>
97 Destroys a font set. Note that this destroys any referenced patterns as
103 fontconfig/doc/func.sgml
105 Copyright © 2003 Keith Packard
107 Permission to use, copy, modify, distribute, and sell this software and its
108 documentation for any purpose is hereby granted without fee, provided that
109 the above copyright notice appear in all copies and that both that
110 copyright notice and this permission notice appear in supporting
111 documentation, and that the name of the author(s) not be used in
112 advertising or publicity pertaining to distribution of the software without
113 specific, written prior permission. The authors make no
114 representations about the suitability of this software for any purpose. It
115 is provided "as is" without express or implied warranty.
117 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
118 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
119 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
120 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
121 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
122 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
123 PERFORMANCE OF THIS SOFTWARE.
125 <refentry id="FcFontSetAdd">
127 <refentrytitle>FcFontSetAdd</refentrytitle>
128 <manvolnum>3</manvolnum>
129 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
132 <refname>FcFontSetAdd</refname>
133 <refpurpose>Add to a font set</refpurpose>
138 #include <fontconfig/fontconfig.h>
141 <funcdef>FcBool <function>FcFontSetAdd</function></funcdef>
142 <paramdef>FcFontSet *<parameter>s</parameter></paramdef>
143 <paramdef>FcPattern *<parameter>font</parameter></paramdef>
147 <refsect1><title>Description</title>
149 Adds a pattern to a font set. Note that the pattern is not copied before
150 being inserted into the set. Returns FcFalse if the pattern cannot be
151 inserted into the set (due to allocation failure). Otherwise returns FcTrue.
156 fontconfig/doc/func.sgml
158 Copyright © 2003 Keith Packard
160 Permission to use, copy, modify, distribute, and sell this software and its
161 documentation for any purpose is hereby granted without fee, provided that
162 the above copyright notice appear in all copies and that both that
163 copyright notice and this permission notice appear in supporting
164 documentation, and that the name of the author(s) not be used in
165 advertising or publicity pertaining to distribution of the software without
166 specific, written prior permission. The authors make no
167 representations about the suitability of this software for any purpose. It
168 is provided "as is" without express or implied warranty.
170 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
171 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
172 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
173 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
174 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
175 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
176 PERFORMANCE OF THIS SOFTWARE.
178 <refentry id="FcFontSetList">
180 <refentrytitle>FcFontSetList</refentrytitle>
181 <manvolnum>3</manvolnum>
182 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
185 <refname>FcFontSetList</refname>
186 <refpurpose>List fonts from a set of font sets</refpurpose>
191 #include <fontconfig/fontconfig.h>
194 <funcdef>FcFontSet * <function>FcFontSetList</function></funcdef>
195 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
196 <paramdef>FcFontSet **<parameter>sets</parameter></paramdef>
197 <paramdef>int<parameter>nsets</parameter></paramdef>
198 <paramdef>FcPattern *<parameter>pattern</parameter></paramdef>
199 <paramdef>FcObjectSet *<parameter>object_set</parameter></paramdef>
203 <refsect1><title>Description</title>
205 Selects fonts matching <parameter>pattern</parameter> from
206 <parameter>sets</parameter>, creates patterns from those
207 fonts containing only the objects in <parameter>object_set</parameter> and returns
208 the set of unique such patterns.
209 If <parameter>config</parameter> is NULL, the default configuration is checked
210 to be up to date, and used.
215 fontconfig/doc/func.sgml
217 Copyright © 2003 Keith Packard
219 Permission to use, copy, modify, distribute, and sell this software and its
220 documentation for any purpose is hereby granted without fee, provided that
221 the above copyright notice appear in all copies and that both that
222 copyright notice and this permission notice appear in supporting
223 documentation, and that the name of the author(s) not be used in
224 advertising or publicity pertaining to distribution of the software without
225 specific, written prior permission. The authors make no
226 representations about the suitability of this software for any purpose. It
227 is provided "as is" without express or implied warranty.
229 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
230 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
231 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
232 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
233 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
234 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
235 PERFORMANCE OF THIS SOFTWARE.
237 <refentry id="FcFontSetMatch">
239 <refentrytitle>FcFontSetMatch</refentrytitle>
240 <manvolnum>3</manvolnum>
241 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
244 <refname>FcFontSetMatch</refname>
245 <refpurpose>Return the best font from a set of font sets</refpurpose>
250 #include <fontconfig/fontconfig.h>
253 <funcdef>FcPattern * <function>FcFontSetMatch</function></funcdef>
254 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
255 <paramdef>FcFontSet **<parameter>sets</parameter></paramdef>
256 <paramdef>int<parameter>nsets</parameter></paramdef>
257 <paramdef>FcPattern *<parameter>pattern</parameter></paramdef>
258 <paramdef>FcResult *<parameter>result</parameter></paramdef>
262 <refsect1><title>Description</title>
264 Finds the font in <parameter>sets</parameter> most closely matching
265 <parameter>pattern</parameter> and returns the result of
266 <function>FcFontRenderPrepare</function> for that font and the provided
267 pattern. This function should be called only after
268 <function>FcConfigSubstitute</function> and
269 <function>FcDefaultSubstitute</function> have been called for
270 <parameter>pattern</parameter>; otherwise the results will not be correct.
271 If <parameter>config</parameter> is NULL, the current configuration is used.
272 Returns NULL if an error occurs during this process.
277 fontconfig/doc/func.sgml
279 Copyright © 2003 Keith Packard
281 Permission to use, copy, modify, distribute, and sell this software and its
282 documentation for any purpose is hereby granted without fee, provided that
283 the above copyright notice appear in all copies and that both that
284 copyright notice and this permission notice appear in supporting
285 documentation, and that the name of the author(s) not be used in
286 advertising or publicity pertaining to distribution of the software without
287 specific, written prior permission. The authors make no
288 representations about the suitability of this software for any purpose. It
289 is provided "as is" without express or implied warranty.
291 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
292 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
293 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
294 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
295 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
296 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
297 PERFORMANCE OF THIS SOFTWARE.
299 <refentry id="FcFontSetPrint">
301 <refentrytitle>FcFontSetPrint</refentrytitle>
302 <manvolnum>3</manvolnum>
303 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
306 <refname>FcFontSetPrint</refname>
307 <refpurpose>Print a set of patterns to stdout</refpurpose>
312 #include <fontconfig/fontconfig.h>
315 <funcdef>void <function>FcFontSetPrint</function></funcdef>
316 <paramdef>FcFontSet *<parameter>set</parameter></paramdef>
320 <refsect1><title>Description</title>
322 This function is useful for diagnosing font related issues, printing the
323 complete contents of every pattern in <parameter>set</parameter>. The format
324 of the output is designed to be of help to users and developers, and may
330 fontconfig/doc/func.sgml
332 Copyright © 2003 Keith Packard
334 Permission to use, copy, modify, distribute, and sell this software and its
335 documentation for any purpose is hereby granted without fee, provided that
336 the above copyright notice appear in all copies and that both that
337 copyright notice and this permission notice appear in supporting
338 documentation, and that the name of the author(s) not be used in
339 advertising or publicity pertaining to distribution of the software without
340 specific, written prior permission. The authors make no
341 representations about the suitability of this software for any purpose. It
342 is provided "as is" without express or implied warranty.
344 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
345 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
346 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
347 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
348 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
349 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
350 PERFORMANCE OF THIS SOFTWARE.
352 <refentry id="FcFontSetSort">
354 <refentrytitle>FcFontSetSort</refentrytitle>
355 <manvolnum>3</manvolnum>
356 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
359 <refname>FcFontSetSort</refname>
360 <refpurpose>Add to a font set</refpurpose>
365 #include <fontconfig/fontconfig.h>
368 <funcdef> <function>FcFontSetSort</function></funcdef>
369 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
370 <paramdef>FcFontSet **<parameter>sets</parameter></paramdef>
371 <paramdef>int<parameter>nsets</parameter></paramdef>
372 <paramdef>FcPattern *<parameter>pattern</parameter></paramdef>
373 <paramdef>FcBool <parameter>trim</parameter></paramdef>
374 <paramdef>FcCharSet **<parameter>csp</parameter></paramdef>
375 <paramdef>FcResult *<parameter>result</parameter></paramdef>
379 <refsect1><title>Description</title>
381 Returns the list of fonts from <parameter>sets</parameter>
382 sorted by closeness to <parameter>pattern</parameter>.
383 If <parameter>trim</parameter> is FcTrue,
384 elements in the list which don't include Unicode coverage not provided by
385 earlier elements in the list are elided. The union of Unicode coverage of
386 all of the fonts is returned in <parameter>csp</parameter>,
387 if <parameter>csp</parameter> is not NULL. This function
388 should be called only after FcConfigSubstitute and FcDefaultSubstitute have
389 been called for <parameter>p</parameter>;
390 otherwise the results will not be correct.
392 The returned FcFontSet references FcPattern structures which may be shared
393 by the return value from multiple FcFontSort calls, applications cannot
394 modify these patterns. Instead, they should be passed, along with
395 <parameter>pattern</parameter> to
396 <function>FcFontRenderPrepare</function> which combines them into a complete pattern.
398 The FcFontSet returned by FcFontSetSort is destroyed by calling FcFontSetDestroy.
403 fontconfig/doc/func.sgml
405 Copyright © 2003 Keith Packard
407 Permission to use, copy, modify, distribute, and sell this software and its
408 documentation for any purpose is hereby granted without fee, provided that
409 the above copyright notice appear in all copies and that both that
410 copyright notice and this permission notice appear in supporting
411 documentation, and that the name of the author(s) not be used in
412 advertising or publicity pertaining to distribution of the software without
413 specific, written prior permission. The authors make no
414 representations about the suitability of this software for any purpose. It
415 is provided "as is" without express or implied warranty.
417 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
418 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
419 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
420 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
421 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
422 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
423 PERFORMANCE OF THIS SOFTWARE.
425 <refentry id="FcFontSetSortDestroy">
427 <refentrytitle>FcFontSetSortDestroy</refentrytitle>
428 <manvolnum>3</manvolnum>
429 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
432 <refname>FcFontSetSortDestroy</refname>
433 <refpurpose>DEPRECATED destroy a font set</refpurpose>
438 #include <fontconfig/fontconfig.h>
441 <funcdef> <function>FcFontSetSortDestroy</function></funcdef>
442 <paramdef>FcFontSet *<parameter>set</parameter></paramdef>
446 <refsect1><title>Description</title>
448 This function is DEPRECATED. <function>FcFontSetSortDestroy</function>
449 destroys <parameter>set</parameter> by calling
450 <function>FcFontSetDestroy</function>. Applications should use
451 <function>FcFontSetDestroy</function> directly instead.