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="FcPatternCreate">
26 <refentrytitle>FcPatternCreate</refentrytitle>
27 <manvolnum>3</manvolnum>
28 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
31 <refname>FcPatternCreate</refname>
32 <refpurpose>Create a pattern</refpurpose>
37 #include <fontconfig/fontconfig.h>
40 <funcdef>FcPattern * <function>FcPatternCreate</function></funcdef>
41 <paramdef>void<parameter></parameter></paramdef>
45 <refsect1><title>Description</title>
47 Creates a pattern with no properties; used to build patterns from scratch.
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="FcPatternDuplicate">
76 <refentrytitle>FcPatternDuplicate</refentrytitle>
77 <manvolnum>3</manvolnum>
78 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
81 <refname>FcPatternDuplicate</refname>
82 <refpurpose>Copy a pattern</refpurpose>
87 #include <fontconfig/fontconfig.h>
90 <funcdef>FcPattern * <function>FcPatternDuplicate</function></funcdef>
91 <paramdef>const FcPattern *<parameter>p</parameter></paramdef>
95 <refsect1><title>Description</title>
97 Copy a pattern, returning a new pattern that matches
98 <parameter>p</parameter>. Each pattern may be modified without affecting the
104 fontconfig/doc/func.sgml
106 Copyright © 2003 Keith Packard
108 Permission to use, copy, modify, distribute, and sell this software and its
109 documentation for any purpose is hereby granted without fee, provided that
110 the above copyright notice appear in all copies and that both that
111 copyright notice and this permission notice appear in supporting
112 documentation, and that the name of the author(s) not be used in
113 advertising or publicity pertaining to distribution of the software without
114 specific, written prior permission. The authors make no
115 representations about the suitability of this software for any purpose. It
116 is provided "as is" without express or implied warranty.
118 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
119 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
120 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
121 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
122 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
123 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
124 PERFORMANCE OF THIS SOFTWARE.
126 <refentry id="FcPatternReference">
128 <refentrytitle>FcPatternReference</refentrytitle>
129 <manvolnum>3</manvolnum>
130 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
133 <refname>FcPatternReference</refname>
134 <refpurpose>Increment pattern reference count</refpurpose>
139 #include <fontconfig/fontconfig.h>
142 <funcdef>void <function>FcPatternReference</function></funcdef>
143 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
147 <refsect1><title>Description</title>
149 Add another reference to <parameter>p</parameter>. Patterns are freed only
150 when the reference count reaches zero.
155 fontconfig/doc/func.sgml
157 Copyright © 2003 Keith Packard
159 Permission to use, copy, modify, distribute, and sell this software and its
160 documentation for any purpose is hereby granted without fee, provided that
161 the above copyright notice appear in all copies and that both that
162 copyright notice and this permission notice appear in supporting
163 documentation, and that the name of the author(s) not be used in
164 advertising or publicity pertaining to distribution of the software without
165 specific, written prior permission. The authors make no
166 representations about the suitability of this software for any purpose. It
167 is provided "as is" without express or implied warranty.
169 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
170 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
171 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
172 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
173 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
174 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
175 PERFORMANCE OF THIS SOFTWARE.
177 <refentry id="FcPatternDestroy">
179 <refentrytitle>FcPatternDestroy</refentrytitle>
180 <manvolnum>3</manvolnum>
181 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
184 <refname>FcPatternDestroy</refname>
185 <refpurpose>Destroy a pattern</refpurpose>
190 #include <fontconfig/fontconfig.h>
193 <funcdef>void <function>FcPatternDestroy</function></funcdef>
194 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
198 <refsect1><title>Description</title>
200 Decrement the pattern reference count. If all references are gone, destroys
201 the pattern, in the process destroying all related values.
206 fontconfig/doc/func.sgml
208 Copyright © 2003 Keith Packard
210 Permission to use, copy, modify, distribute, and sell this software and its
211 documentation for any purpose is hereby granted without fee, provided that
212 the above copyright notice appear in all copies and that both that
213 copyright notice and this permission notice appear in supporting
214 documentation, and that the name of the author(s) not be used in
215 advertising or publicity pertaining to distribution of the software without
216 specific, written prior permission. The authors make no
217 representations about the suitability of this software for any purpose. It
218 is provided "as is" without express or implied warranty.
220 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
221 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
222 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
223 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
224 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
225 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
226 PERFORMANCE OF THIS SOFTWARE.
228 <refentry id="FcPatternEqual">
230 <refentrytitle>FcPatternEqual</refentrytitle>
231 <manvolnum>3</manvolnum>
232 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
235 <refname>FcPatternEqual</refname>
236 <refpurpose>Compare patterns</refpurpose>
241 #include <fontconfig/fontconfig.h>
244 <funcdef>FcBool <function>FcPatternEqual</function></funcdef>
245 <paramdef>const FcPattern *<parameter>pa</parameter></paramdef>
246 <paramdef>const FcPattern *<parameter>pb</parameter></paramdef>
250 <refsect1><title>Description</title>
252 Returns whether <parameter>pa</parameter> and <parameter>pb</parameter> are exactly alike.
257 fontconfig/doc/func.sgml
259 Copyright © 2003 Keith Packard
261 Permission to use, copy, modify, distribute, and sell this software and its
262 documentation for any purpose is hereby granted without fee, provided that
263 the above copyright notice appear in all copies and that both that
264 copyright notice and this permission notice appear in supporting
265 documentation, and that the name of the author(s) not be used in
266 advertising or publicity pertaining to distribution of the software without
267 specific, written prior permission. The authors make no
268 representations about the suitability of this software for any purpose. It
269 is provided "as is" without express or implied warranty.
271 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
272 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
273 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
274 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
275 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
276 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
277 PERFORMANCE OF THIS SOFTWARE.
279 <refentry id="FcPatternEqualSubset">
281 <refentrytitle>FcPatternEqualSubset</refentrytitle>
282 <manvolnum>3</manvolnum>
283 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
286 <refname>FcPatternEqualSubset</refname>
287 <refpurpose>Compare portions of patterns</refpurpose>
292 #include <fontconfig/fontconfig.h>
295 <funcdef>FcBool <function>FcPatternEqualSubset</function></funcdef>
296 <paramdef>const FcPattern *<parameter>pa</parameter></paramdef>
297 <paramdef>const FcPattern *<parameter>pb</parameter></paramdef>
298 <paramdef>const FcObjectSet *<parameter>os</parameter></paramdef>
302 <refsect1><title>Description</title>
304 Returns whether <parameter>pa</parameter> and <parameter>pb</parameter> have exactly the same values for all of the
305 objects in <parameter>os</parameter>.
310 fontconfig/doc/func.sgml
312 Copyright © 2003 Keith Packard
314 Permission to use, copy, modify, distribute, and sell this software and its
315 documentation for any purpose is hereby granted without fee, provided that
316 the above copyright notice appear in all copies and that both that
317 copyright notice and this permission notice appear in supporting
318 documentation, and that the name of the author(s) not be used in
319 advertising or publicity pertaining to distribution of the software without
320 specific, written prior permission. The authors make no
321 representations about the suitability of this software for any purpose. It
322 is provided "as is" without express or implied warranty.
324 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
325 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
326 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
327 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
328 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
329 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
330 PERFORMANCE OF THIS SOFTWARE.
332 <refentry id="FcPatternFilter">
334 <refentrytitle>FcPatternFilter</refentrytitle>
335 <manvolnum>3</manvolnum>
336 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
339 <refname>FcPatternFilter</refname>
340 <refpurpose>Filter the objects of pattern</refpurpose>
345 #include <fontconfig/fontconfig.h>
348 <funcdef>FcPattern * <function>FcPatternFilter</function></funcdef>
349 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
350 <paramdef>const FcObjectSet *<parameter></parameter></paramdef>
354 <refsect1><title>Description</title>
356 Returns a new pattern that only has those objects from
357 <parameter>p</parameter> that are in <parameter>os</parameter>.
358 If <parameter>os</parameter> is NULL, a duplicate of
359 <parameter>p</parameter> is returned.
364 fontconfig/doc/func.sgml
366 Copyright © 2003 Keith Packard
368 Permission to use, copy, modify, distribute, and sell this software and its
369 documentation for any purpose is hereby granted without fee, provided that
370 the above copyright notice appear in all copies and that both that
371 copyright notice and this permission notice appear in supporting
372 documentation, and that the name of the author(s) not be used in
373 advertising or publicity pertaining to distribution of the software without
374 specific, written prior permission. The authors make no
375 representations about the suitability of this software for any purpose. It
376 is provided "as is" without express or implied warranty.
378 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
379 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
380 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
381 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
382 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
383 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
384 PERFORMANCE OF THIS SOFTWARE.
386 <refentry id="FcPatternHash">
388 <refentrytitle>FcPatternHash</refentrytitle>
389 <manvolnum>3</manvolnum>
390 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
393 <refname>FcPatternHash</refname>
394 <refpurpose>Compute a pattern hash value</refpurpose>
399 #include <fontconfig/fontconfig.h>
402 <funcdef>FcChar32 <function>FcPatternHash</function></funcdef>
403 <paramdef>const FcPattern *<parameter>p</parameter></paramdef>
407 <refsect1><title>Description</title>
409 Returns a 32-bit number which is the same for any two patterns which are
415 fontconfig/doc/func.sgml
417 Copyright © 2003 Keith Packard
419 Permission to use, copy, modify, distribute, and sell this software and its
420 documentation for any purpose is hereby granted without fee, provided that
421 the above copyright notice appear in all copies and that both that
422 copyright notice and this permission notice appear in supporting
423 documentation, and that the name of the author(s) not be used in
424 advertising or publicity pertaining to distribution of the software without
425 specific, written prior permission. The authors make no
426 representations about the suitability of this software for any purpose. It
427 is provided "as is" without express or implied warranty.
429 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
430 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
431 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
432 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
433 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
434 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
435 PERFORMANCE OF THIS SOFTWARE.
437 <refentry id="FcPatternAdd">
439 <refentrytitle>FcPatternAdd</refentrytitle>
440 <manvolnum>3</manvolnum>
441 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
444 <refname>FcPatternAdd</refname>
445 <refpurpose>Add a value to a pattern</refpurpose>
450 #include <fontconfig/fontconfig.h>
453 <funcdef>FcBool <function>FcPatternAdd</function></funcdef>
454 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
455 <paramdef>const char *<parameter>object</parameter></paramdef>
456 <paramdef>FcValue <parameter>value</parameter></paramdef>
457 <paramdef>FcBool <parameter>append</parameter></paramdef>
461 <refsect1><title>Description</title>
463 Adds a single value to the list of values associated with the property named
464 `object<parameter>. If `append</parameter> is FcTrue, the value is added at the end of any
465 existing list, otherwise it is inserted at the beginning. `value' is saved
466 (with FcValueSave) when inserted into the pattern so that the library
467 retains no reference to any application-supplied data structure.
472 fontconfig/doc/func.sgml
474 Copyright © 2003 Keith Packard
476 Permission to use, copy, modify, distribute, and sell this software and its
477 documentation for any purpose is hereby granted without fee, provided that
478 the above copyright notice appear in all copies and that both that
479 copyright notice and this permission notice appear in supporting
480 documentation, and that the name of the author(s) not be used in
481 advertising or publicity pertaining to distribution of the software without
482 specific, written prior permission. The authors make no
483 representations about the suitability of this software for any purpose. It
484 is provided "as is" without express or implied warranty.
486 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
487 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
488 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
489 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
490 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
491 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
492 PERFORMANCE OF THIS SOFTWARE.
494 <refentry id="FcPatternAddWeak">
496 <refentrytitle>FcPatternAddWeak</refentrytitle>
497 <manvolnum>3</manvolnum>
498 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
501 <refname>FcPatternAddWeak</refname>
502 <refpurpose>Add a value to a pattern with weak binding</refpurpose>
507 #include <fontconfig/fontconfig.h>
510 <funcdef>FcBool <function>FcPatternAddWeak</function></funcdef>
511 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
512 <paramdef>const char *<parameter>object</parameter></paramdef>
513 <paramdef>FcValue <parameter>value</parameter></paramdef>
514 <paramdef>FcBool <parameter>append</parameter></paramdef>
518 <refsect1><title>Description</title>
520 FcPatternAddWeak is essentially the same as FcPatternAdd except that any
521 values added to the list have binding <parameter>weak</parameter> instead of <parameter>strong</parameter>.
526 fontconfig/doc/func.sgml
528 Copyright © 2003 Keith Packard
530 Permission to use, copy, modify, distribute, and sell this software and its
531 documentation for any purpose is hereby granted without fee, provided that
532 the above copyright notice appear in all copies and that both that
533 copyright notice and this permission notice appear in supporting
534 documentation, and that the name of the author(s) not be used in
535 advertising or publicity pertaining to distribution of the software without
536 specific, written prior permission. The authors make no
537 representations about the suitability of this software for any purpose. It
538 is provided "as is" without express or implied warranty.
540 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
541 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
542 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
543 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
544 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
545 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
546 PERFORMANCE OF THIS SOFTWARE.
548 <refentry id="FcPatternAdd-Type">
550 <refentrytitle>FcPatternAdd-Type</refentrytitle>
551 <manvolnum>3</manvolnum>
552 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
555 <refname>FcPatternAddInteger</refname>
556 <refname>FcPatternAddDouble</refname>
557 <refname>FcPatternAddString</refname>
558 <refname>FcPatternAddMatrix</refname>
559 <refname>FcPatternAddCharSet</refname>
560 <refname>FcPatternAddBool</refname>
561 <refname>FcPatternAddFTFace</refname>
562 <refname>FcPatternAddLangSet</refname>
563 <refname>FcPatternAddRange</refname>
564 <refpurpose>Add a typed value to a pattern</refpurpose>
569 #include <fontconfig/fontconfig.h>
572 <funcdef>FcBool <function>FcPatternAddInteger</function></funcdef>
573 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
574 <paramdef>const char *<parameter>object</parameter></paramdef>
575 <paramdef>int <parameter>i</parameter></paramdef>
578 <funcdef>FcBool <function>FcPatternAddDouble</function></funcdef>
579 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
580 <paramdef>const char *<parameter>object</parameter></paramdef>
581 <paramdef>double <parameter>d</parameter></paramdef>
584 <funcdef>FcBool <function>FcPatternAddString</function></funcdef>
585 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
586 <paramdef>const char *<parameter>object</parameter></paramdef>
587 <paramdef>const FcChar8 *<parameter>s</parameter></paramdef>
590 <funcdef>FcBool <function>FcPatternAddMatrix</function></funcdef>
591 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
592 <paramdef>const char *<parameter>object</parameter></paramdef>
593 <paramdef>const FcMatrix *<parameter>m</parameter></paramdef>
596 <funcdef>FcBool <function>FcPatternAddCharSet</function></funcdef>
597 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
598 <paramdef>const char *<parameter>object</parameter></paramdef>
599 <paramdef>const FcCharSet *<parameter>c</parameter></paramdef>
602 <funcdef>FcBool <function>FcPatternAddBool</function></funcdef>
603 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
604 <paramdef>const char *<parameter>object</parameter></paramdef>
605 <paramdef>FcBool <parameter>b</parameter></paramdef>
608 <funcdef>FcBool <function>FcPatternAddFTFace</function></funcdef>
609 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
610 <paramdef>const char *<parameter>object</parameter></paramdef>
611 <paramdef>const FT_Face<parameter>f</parameter></paramdef>
614 <funcdef>FcBool <function>FcPatternAddLangSet</function></funcdef>
615 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
616 <paramdef>const char *<parameter>object</parameter></paramdef>
617 <paramdef>const FcLangSet *<parameter>l</parameter></paramdef>
620 <funcdef>FcBool <function>FcPatternAddRange</function></funcdef>
621 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
622 <paramdef>const char *<parameter>object</parameter></paramdef>
623 <paramdef>const FcRange *<parameter>r</parameter></paramdef>
627 <refsect1><title>Description</title>
629 These are all convenience functions that insert objects of the specified
630 type into the pattern. Use these in preference to FcPatternAdd as they
631 will provide compile-time typechecking. These all append values to
632 any existing list of values.
634 <function>FcPatternAddRange</function> are available since 2.11.91.
639 fontconfig/doc/func.sgml
641 Copyright © 2003 Keith Packard
643 Permission to use, copy, modify, distribute, and sell this software and its
644 documentation for any purpose is hereby granted without fee, provided that
645 the above copyright notice appear in all copies and that both that
646 copyright notice and this permission notice appear in supporting
647 documentation, and that the name of the author(s) not be used in
648 advertising or publicity pertaining to distribution of the software without
649 specific, written prior permission. The authors make no
650 representations about the suitability of this software for any purpose. It
651 is provided "as is" without express or implied warranty.
653 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
654 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
655 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
656 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
657 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
658 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
659 PERFORMANCE OF THIS SOFTWARE.
661 <refentry id="FcPatternGetWithBinding">
663 <refentrytitle>FcPatternGetWithBinding</refentrytitle>
664 <manvolnum>3</manvolnum>
665 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
668 <refname>FcPatternGetWithBinding</refname>
669 <refpurpose>Return a value with binding from a pattern</refpurpose>
674 #include <fontconfig/fontconfig.h>
677 <funcdef>FcResult <function>FcPatternGetWithBinding</function></funcdef>
678 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
679 <paramdef>const char *<parameter>object</parameter></paramdef>
680 <paramdef>int <parameter>id</parameter></paramdef>
681 <paramdef>FcValue *<parameter>v</parameter></paramdef>
682 <paramdef>FcValueBinding *<parameter>b</parameter></paramdef>
686 <refsect1><title>Description</title>
688 Returns in <parameter>v</parameter> the <parameter>id</parameter>'th value
689 and <parameter>b</parameter> binding for that associated with the property
690 <parameter>object</parameter>.
691 The Value returned is not a copy, but rather refers to the data stored
692 within the pattern directly. Applications must not free this value.
695 <refsect1><title>Since</title>
696 <para>version 2.12.5</para>
700 fontconfig/doc/func.sgml
702 Copyright © 2003 Keith Packard
704 Permission to use, copy, modify, distribute, and sell this software and its
705 documentation for any purpose is hereby granted without fee, provided that
706 the above copyright notice appear in all copies and that both that
707 copyright notice and this permission notice appear in supporting
708 documentation, and that the name of the author(s) not be used in
709 advertising or publicity pertaining to distribution of the software without
710 specific, written prior permission. The authors make no
711 representations about the suitability of this software for any purpose. It
712 is provided "as is" without express or implied warranty.
714 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
715 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
716 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
717 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
718 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
719 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
720 PERFORMANCE OF THIS SOFTWARE.
722 <refentry id="FcPatternGet">
724 <refentrytitle>FcPatternGet</refentrytitle>
725 <manvolnum>3</manvolnum>
726 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
729 <refname>FcPatternGet</refname>
730 <refpurpose>Return a value from a pattern</refpurpose>
735 #include <fontconfig/fontconfig.h>
738 <funcdef>FcResult <function>FcPatternGet</function></funcdef>
739 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
740 <paramdef>const char *<parameter>object</parameter></paramdef>
741 <paramdef>int <parameter>id</parameter></paramdef>
742 <paramdef>FcValue *<parameter>v</parameter></paramdef>
746 <refsect1><title>Description</title>
748 Returns in <parameter>v</parameter> the <parameter>id</parameter>'th value
749 associated with the property <parameter>object</parameter>.
750 The value returned is not a copy, but rather refers to the data stored
751 within the pattern directly. Applications must not free this value.
756 fontconfig/doc/func.sgml
758 Copyright © 2003 Keith Packard
760 Permission to use, copy, modify, distribute, and sell this software and its
761 documentation for any purpose is hereby granted without fee, provided that
762 the above copyright notice appear in all copies and that both that
763 copyright notice and this permission notice appear in supporting
764 documentation, and that the name of the author(s) not be used in
765 advertising or publicity pertaining to distribution of the software without
766 specific, written prior permission. The authors make no
767 representations about the suitability of this software for any purpose. It
768 is provided "as is" without express or implied warranty.
770 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
771 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
772 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
773 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
774 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
775 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
776 PERFORMANCE OF THIS SOFTWARE.
778 <refentry id="FcPatternGet-Type">
780 <refentrytitle>FcPatternGet-Type</refentrytitle>
781 <manvolnum>3</manvolnum>
782 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
785 <refname>FcPatternGetInteger</refname>
786 <refname>FcPatternGetDouble</refname>
787 <refname>FcPatternGetString</refname>
788 <refname>FcPatternGetMatrix</refname>
789 <refname>FcPatternGetCharSet</refname>
790 <refname>FcPatternGetBool</refname>
791 <refname>FcPatternGetFTFace</refname>
792 <refname>FcPatternGetLangSet</refname>
793 <refname>FcPatternGetRange</refname>
794 <refpurpose>Return a typed value from a pattern</refpurpose>
799 #include <fontconfig/fontconfig.h>
802 <funcdef>FcResult <function>FcPatternGetInteger</function></funcdef>
803 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
804 <paramdef>const char *<parameter>object</parameter></paramdef>
805 <paramdef>int <parameter>n</parameter></paramdef>
806 <paramdef>int *<parameter>i</parameter></paramdef>
809 <funcdef>FcResult <function>FcPatternGetDouble</function></funcdef>
810 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
811 <paramdef>const char *<parameter>object</parameter></paramdef>
812 <paramdef>int <parameter>n</parameter></paramdef>
813 <paramdef>double *<parameter>d</parameter></paramdef>
816 <funcdef>FcResult <function>FcPatternGetString</function></funcdef>
817 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
818 <paramdef>const char *<parameter>object</parameter></paramdef>
819 <paramdef>int <parameter>n</parameter></paramdef>
820 <paramdef>FcChar8 **<parameter>s</parameter></paramdef>
823 <funcdef>FcResult <function>FcPatternGetMatrix</function></funcdef>
824 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
825 <paramdef>const char *<parameter>object</parameter></paramdef>
826 <paramdef>int <parameter>n</parameter></paramdef>
827 <paramdef>FcMatrix **<parameter>s</parameter></paramdef>
830 <funcdef>FcResult <function>FcPatternGetCharSet</function></funcdef>
831 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
832 <paramdef>const char *<parameter>object</parameter></paramdef>
833 <paramdef>int <parameter>n</parameter></paramdef>
834 <paramdef>FcCharSet **<parameter>c</parameter></paramdef>
837 <funcdef>FcResult <function>FcPatternGetBool</function></funcdef>
838 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
839 <paramdef>const char *<parameter>object</parameter></paramdef>
840 <paramdef>int <parameter>n</parameter></paramdef>
841 <paramdef>FcBool *<parameter>b</parameter></paramdef>
844 <funcdef>FcResult <function>FcPatternGetFTFace</function></funcdef>
845 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
846 <paramdef>const char *<parameter>object</parameter></paramdef>
847 <paramdef>int <parameter>n</parameter></paramdef>
848 <paramdef>FT_Face *<parameter>f</parameter></paramdef>
851 <funcdef>FcResult <function>FcPatternGetLangSet</function></funcdef>
852 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
853 <paramdef>const char *<parameter>object</parameter></paramdef>
854 <paramdef>int <parameter>n</parameter></paramdef>
855 <paramdef>FcLangSet **<parameter>l</parameter></paramdef>
858 <funcdef>FcResult <function>FcPatternGetRange</function></funcdef>
859 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
860 <paramdef>const char *<parameter>object</parameter></paramdef>
861 <paramdef>int <parameter>n</parameter></paramdef>
862 <paramdef>FcRange **<parameter>r</parameter></paramdef>
866 <refsect1><title>Description</title>
868 These are convenience functions that call FcPatternGet and verify that the
869 returned data is of the expected type. They return FcResultTypeMismatch if
870 this is not the case. Note that these (like FcPatternGet) do not make a
871 copy of any data structure referenced by the return value. Use these
872 in preference to FcPatternGet to provide compile-time typechecking.
874 <function>FcPatternGetRange</function> are available since 2.11.91.
879 fontconfig/doc/func.sgml
881 Copyright © 2003 Keith Packard
883 Permission to use, copy, modify, distribute, and sell this software and its
884 documentation for any purpose is hereby granted without fee, provided that
885 the above copyright notice appear in all copies and that both that
886 copyright notice and this permission notice appear in supporting
887 documentation, and that the name of the author(s) not be used in
888 advertising or publicity pertaining to distribution of the software without
889 specific, written prior permission. The authors make no
890 representations about the suitability of this software for any purpose. It
891 is provided "as is" without express or implied warranty.
893 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
894 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
895 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
896 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
897 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
898 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
899 PERFORMANCE OF THIS SOFTWARE.
901 <refentry id="FcPatternBuild">
903 <refentrytitle>FcPatternBuild</refentrytitle>
904 <manvolnum>3</manvolnum>
905 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
908 <refname>FcPatternBuild</refname>
909 <refname>FcPatternVaBuild</refname>
910 <refname>FcPatternVapBuild</refname>
911 <refpurpose>Create patterns from arguments</refpurpose>
916 #include <fontconfig/fontconfig.h>
919 <funcdef>FcPattern * <function>FcPatternBuild</function></funcdef>
920 <paramdef>FcPattern *<parameter>pattern</parameter></paramdef>
921 <paramdef>...<parameter></parameter></paramdef>
924 <funcdef>FcPattern * <function>FcPatternVaBuild</function></funcdef>
925 <paramdef>FcPattern *<parameter>pattern</parameter></paramdef>
926 <paramdef>va_list <parameter>va</parameter></paramdef>
929 <funcdef>void <function>FcPatternVapBuild</function></funcdef>
930 <paramdef>FcPattern *<parameter>result</parameter></paramdef>
931 <paramdef>FcPattern *<parameter>pattern</parameter></paramdef>
932 <paramdef>va_list <parameter>va</parameter></paramdef>
936 <refsect1><title>Description</title>
938 Builds a pattern using a list of objects, types and values. Each
939 value to be entered in the pattern is specified with three arguments:
943 Object name, a string describing the property to be added.
944 </para></listitem><listitem><para>
945 Object type, one of the FcType enumerated values
946 </para></listitem><listitem><para>
947 Value, not an FcValue, but the raw type as passed to any of the
948 FcPatternAdd<type> functions. Must match the type of the second
953 The argument list is terminated by a null object name, no object type nor
954 value need be passed for this. The values are added to `pattern', if
955 `pattern' is null, a new pattern is created. In either case, the pattern is
959 pattern = FcPatternBuild (0, FC_FAMILY, FcTypeString, "Times", (char *) 0);
962 FcPatternVaBuild is used when the arguments are already in the form of a
963 varargs value. FcPatternVapBuild is a macro version of FcPatternVaBuild
964 which returns its result directly in the <parameter>result</parameter>
970 fontconfig/doc/func.sgml
972 Copyright © 2003 Keith Packard
974 Permission to use, copy, modify, distribute, and sell this software and its
975 documentation for any purpose is hereby granted without fee, provided that
976 the above copyright notice appear in all copies and that both that
977 copyright notice and this permission notice appear in supporting
978 documentation, and that the name of the author(s) not be used in
979 advertising or publicity pertaining to distribution of the software without
980 specific, written prior permission. The authors make no
981 representations about the suitability of this software for any purpose. It
982 is provided "as is" without express or implied warranty.
984 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
985 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
986 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
987 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
988 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
989 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
990 PERFORMANCE OF THIS SOFTWARE.
992 <refentry id="FcPatternDel">
994 <refentrytitle>FcPatternDel</refentrytitle>
995 <manvolnum>3</manvolnum>
996 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
999 <refname>FcPatternDel</refname>
1000 <refpurpose>Delete a property from a pattern</refpurpose>
1005 #include <fontconfig/fontconfig.h>
1008 <funcdef>FcBool <function>FcPatternDel</function></funcdef>
1009 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
1010 <paramdef>const char *<parameter>object</parameter></paramdef>
1014 <refsect1><title>Description</title>
1016 Deletes all values associated with the property `object', returning
1017 whether the property existed or not.
1022 fontconfig/doc/func.sgml
1024 Copyright © 2003 Keith Packard
1026 Permission to use, copy, modify, distribute, and sell this software and its
1027 documentation for any purpose is hereby granted without fee, provided that
1028 the above copyright notice appear in all copies and that both that
1029 copyright notice and this permission notice appear in supporting
1030 documentation, and that the name of the author(s) not be used in
1031 advertising or publicity pertaining to distribution of the software without
1032 specific, written prior permission. The authors make no
1033 representations about the suitability of this software for any purpose. It
1034 is provided "as is" without express or implied warranty.
1036 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1037 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1038 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1039 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1040 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1041 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1042 PERFORMANCE OF THIS SOFTWARE.
1044 <refentry id="FcPatternRemove">
1046 <refentrytitle>FcPatternRemove</refentrytitle>
1047 <manvolnum>3</manvolnum>
1048 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1051 <refname>FcPatternRemove</refname>
1052 <refpurpose>Remove one object of the specified type from the pattern</refpurpose>
1057 #include <fontconfig/fontconfig.h>
1060 <funcdef>FcBool <function>FcPatternRemove</function></funcdef>
1061 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
1062 <paramdef>const char *<parameter>object</parameter></paramdef>
1063 <paramdef>int <parameter>id</parameter></paramdef>
1067 <refsect1><title>Description</title>
1069 Removes the value associated with the property `object' at position `id', returning
1070 whether the property existed and had a value at that position or not.
1075 fontconfig/doc/func.sgml
1077 Copyright © 2003 Keith Packard
1079 Permission to use, copy, modify, distribute, and sell this software and its
1080 documentation for any purpose is hereby granted without fee, provided that
1081 the above copyright notice appear in all copies and that both that
1082 copyright notice and this permission notice appear in supporting
1083 documentation, and that the name of the author(s) not be used in
1084 advertising or publicity pertaining to distribution of the software without
1085 specific, written prior permission. The authors make no
1086 representations about the suitability of this software for any purpose. It
1087 is provided "as is" without express or implied warranty.
1089 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1090 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1091 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1092 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1093 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1094 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1095 PERFORMANCE OF THIS SOFTWARE.
1097 <refentry id="FcPatternPrint">
1099 <refentrytitle>FcPatternPrint</refentrytitle>
1100 <manvolnum>3</manvolnum>
1101 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1104 <refname>FcPatternPrint</refname>
1105 <refpurpose>Print a pattern for debugging</refpurpose>
1110 #include <fontconfig/fontconfig.h>
1113 <funcdef>void <function>FcPatternPrint</function></funcdef>
1114 <paramdef>const FcPattern *<parameter>p</parameter></paramdef>
1118 <refsect1><title>Description</title>
1120 Prints an easily readable version of the pattern to stdout. There is
1121 no provision for reparsing data in this format, it's just for diagnostics
1127 fontconfig/doc/func.sgml
1129 Copyright © 2003 Keith Packard
1131 Permission to use, copy, modify, distribute, and sell this software and its
1132 documentation for any purpose is hereby granted without fee, provided that
1133 the above copyright notice appear in all copies and that both that
1134 copyright notice and this permission notice appear in supporting
1135 documentation, and that the name of the author(s) not be used in
1136 advertising or publicity pertaining to distribution of the software without
1137 specific, written prior permission. The authors make no
1138 representations about the suitability of this software for any purpose. It
1139 is provided "as is" without express or implied warranty.
1141 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1142 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1143 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1144 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1145 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1146 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1147 PERFORMANCE OF THIS SOFTWARE.
1149 <refentry id="FcDefaultSubstitute">
1151 <refentrytitle>FcDefaultSubstitute</refentrytitle>
1152 <manvolnum>3</manvolnum>
1153 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1156 <refname>FcDefaultSubstitute</refname>
1157 <refpurpose>Perform default substitutions in a pattern</refpurpose>
1162 #include <fontconfig/fontconfig.h>
1165 <funcdef>void <function>FcDefaultSubstitute</function></funcdef>
1166 <paramdef>FcPattern *<parameter>pattern</parameter></paramdef>
1170 <refsect1><title>Description</title>
1172 Supplies default values for underspecified font patterns:
1175 Patterns without a specified style or weight are set to Medium
1178 Patterns without a specified style or slant are set to Roman
1181 Patterns without a specified pixel size are given one computed from any
1182 specified point size (default 12), dpi (default 75) and scale (default 1).
1189 fontconfig/doc/func.sgml
1191 Copyright © 2003 Keith Packard
1193 Permission to use, copy, modify, distribute, and sell this software and its
1194 documentation for any purpose is hereby granted without fee, provided that
1195 the above copyright notice appear in all copies and that both that
1196 copyright notice and this permission notice appear in supporting
1197 documentation, and that the name of the author(s) not be used in
1198 advertising or publicity pertaining to distribution of the software without
1199 specific, written prior permission. The authors make no
1200 representations about the suitability of this software for any purpose. It
1201 is provided "as is" without express or implied warranty.
1203 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1204 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1205 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1206 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1207 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1208 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1209 PERFORMANCE OF THIS SOFTWARE.
1211 <refentry id="FcNameParse">
1213 <refentrytitle>FcNameParse</refentrytitle>
1214 <manvolnum>3</manvolnum>
1215 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1218 <refname>FcNameParse</refname>
1219 <refpurpose>Parse a pattern string</refpurpose>
1224 #include <fontconfig/fontconfig.h>
1227 <funcdef>FcPattern * <function>FcNameParse</function></funcdef>
1228 <paramdef>const FcChar8 *<parameter>name</parameter></paramdef>
1232 <refsect1><title>Description</title>
1234 Converts <parameter>name</parameter> from the standard text format described above into a pattern.
1239 fontconfig/doc/func.sgml
1241 Copyright © 2003 Keith Packard
1243 Permission to use, copy, modify, distribute, and sell this software and its
1244 documentation for any purpose is hereby granted without fee, provided that
1245 the above copyright notice appear in all copies and that both that
1246 copyright notice and this permission notice appear in supporting
1247 documentation, and that the name of the author(s) not be used in
1248 advertising or publicity pertaining to distribution of the software without
1249 specific, written prior permission. The authors make no
1250 representations about the suitability of this software for any purpose. It
1251 is provided "as is" without express or implied warranty.
1253 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1254 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1255 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1256 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1257 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1258 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1259 PERFORMANCE OF THIS SOFTWARE.
1261 <refentry id="FcNameUnparse">
1263 <refentrytitle>FcNameUnparse</refentrytitle>
1264 <manvolnum>3</manvolnum>
1265 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1268 <refname>FcNameUnparse</refname>
1269 <refpurpose>Convert a pattern back into a string that can be parsed</refpurpose>
1274 #include <fontconfig/fontconfig.h>
1277 <funcdef>FcChar8 * <function>FcNameUnparse</function></funcdef>
1278 <paramdef>FcPattern *<parameter>pat</parameter></paramdef>
1282 <refsect1><title>Description</title>
1284 Converts the given pattern into the standard text format described above.
1285 The return value is not static, but instead refers to newly allocated memory
1286 which should be freed by the caller using free().