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="FcConfigCreate">
26 <refentrytitle>FcConfigCreate</refentrytitle>
27 <manvolnum>3</manvolnum>
28 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
31 <refname>FcConfigCreate</refname>
32 <refpurpose>Create a configuration</refpurpose>
37 #include <fontconfig/fontconfig.h>
40 <funcdef>FcConfig * <function>FcConfigCreate</function></funcdef>
41 <paramdef>void<parameter></parameter></paramdef>
45 <refsect1><title>Description</title>
47 Creates an empty configuration.
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="FcConfigReference">
76 <refentrytitle>FcConfigReference</refentrytitle>
77 <manvolnum>3</manvolnum>
78 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
81 <refname>FcConfigReference</refname>
82 <refpurpose>Increment config reference count</refpurpose>
87 #include <fontconfig/fontconfig.h>
90 <funcdef>FcConfig * <function>FcConfigReference</function></funcdef>
91 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
95 <refsect1><title>Description</title>
97 Add another reference to <parameter>config</parameter>. Configs are freed only
98 when the reference count reaches zero.
99 If <parameter>config</parameter> is NULL, the current configuration is used.
100 In that case this function will be similar to FcConfigGetCurrent() except that
101 it increments the reference count before returning and the user is responsible
102 for destroying the configuration when not needed anymore.
107 fontconfig/doc/func.sgml
109 Copyright © 2003 Keith Packard
111 Permission to use, copy, modify, distribute, and sell this software and its
112 documentation for any purpose is hereby granted without fee, provided that
113 the above copyright notice appear in all copies and that both that
114 copyright notice and this permission notice appear in supporting
115 documentation, and that the name of the author(s) not be used in
116 advertising or publicity pertaining to distribution of the software without
117 specific, written prior permission. The authors make no
118 representations about the suitability of this software for any purpose. It
119 is provided "as is" without express or implied warranty.
121 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
122 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
123 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
124 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
125 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
126 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
127 PERFORMANCE OF THIS SOFTWARE.
129 <refentry id="FcConfigDestroy">
131 <refentrytitle>FcConfigDestroy</refentrytitle>
132 <manvolnum>3</manvolnum>
133 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
136 <refname>FcConfigDestroy</refname>
137 <refpurpose>Destroy a configuration</refpurpose>
142 #include <fontconfig/fontconfig.h>
145 <funcdef>void <function>FcConfigDestroy</function></funcdef>
146 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
150 <refsect1><title>Description</title>
152 Decrements the config reference count. If all references are gone, destroys
153 the configuration and any data associated with it.
154 Note that calling this function with the return from FcConfigGetCurrent will
155 cause a new configuration to be created for use as current configuration.
160 fontconfig/doc/func.sgml
162 Copyright © 2003 Keith Packard
164 Permission to use, copy, modify, distribute, and sell this software and its
165 documentation for any purpose is hereby granted without fee, provided that
166 the above copyright notice appear in all copies and that both that
167 copyright notice and this permission notice appear in supporting
168 documentation, and that the name of the author(s) not be used in
169 advertising or publicity pertaining to distribution of the software without
170 specific, written prior permission. The authors make no
171 representations about the suitability of this software for any purpose. It
172 is provided "as is" without express or implied warranty.
174 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
175 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
176 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
177 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
178 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
179 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
180 PERFORMANCE OF THIS SOFTWARE.
182 <refentry id="FcConfigSetCurrent">
184 <refentrytitle>FcConfigSetCurrent</refentrytitle>
185 <manvolnum>3</manvolnum>
186 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
189 <refname>FcConfigSetCurrent</refname>
190 <refpurpose>Set configuration as default</refpurpose>
195 #include <fontconfig/fontconfig.h>
198 <funcdef>FcBool <function>FcConfigSetCurrent</function></funcdef>
199 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
203 <refsect1><title>Description</title>
205 Sets the current default configuration to <parameter>config</parameter>. Implicitly calls
206 FcConfigBuildFonts if necessary, and FcConfigReference() to inrease the reference count
207 in <parameter>config</parameter> since 2.12.0, returning FcFalse if that call fails.
212 fontconfig/doc/func.sgml
214 Copyright © 2003 Keith Packard
216 Permission to use, copy, modify, distribute, and sell this software and its
217 documentation for any purpose is hereby granted without fee, provided that
218 the above copyright notice appear in all copies and that both that
219 copyright notice and this permission notice appear in supporting
220 documentation, and that the name of the author(s) not be used in
221 advertising or publicity pertaining to distribution of the software without
222 specific, written prior permission. The authors make no
223 representations about the suitability of this software for any purpose. It
224 is provided "as is" without express or implied warranty.
226 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
227 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
228 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
229 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
230 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
231 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
232 PERFORMANCE OF THIS SOFTWARE.
234 <refentry id="FcConfigGetCurrent">
236 <refentrytitle>FcConfigGetCurrent</refentrytitle>
237 <manvolnum>3</manvolnum>
238 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
241 <refname>FcConfigGetCurrent</refname>
242 <refpurpose>Return current configuration</refpurpose>
247 #include <fontconfig/fontconfig.h>
250 <funcdef>FcConfig * <function>FcConfigGetCurrent</function></funcdef>
251 <paramdef>void<parameter></parameter></paramdef>
255 <refsect1><title>Description</title>
257 Returns the current default configuration.
262 fontconfig/doc/func.sgml
264 Copyright © 2003 Keith Packard
266 Permission to use, copy, modify, distribute, and sell this software and its
267 documentation for any purpose is hereby granted without fee, provided that
268 the above copyright notice appear in all copies and that both that
269 copyright notice and this permission notice appear in supporting
270 documentation, and that the name of the author(s) not be used in
271 advertising or publicity pertaining to distribution of the software without
272 specific, written prior permission. The authors make no
273 representations about the suitability of this software for any purpose. It
274 is provided "as is" without express or implied warranty.
276 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
277 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
278 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
279 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
280 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
281 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
282 PERFORMANCE OF THIS SOFTWARE.
284 <refentry id="FcConfigUptoDate">
286 <refentrytitle>FcConfigUptoDate</refentrytitle>
287 <manvolnum>3</manvolnum>
288 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
291 <refname>FcConfigUptoDate</refname>
292 <refpurpose>Check timestamps on config files</refpurpose>
297 #include <fontconfig/fontconfig.h>
300 <funcdef>FcBool <function>FcConfigUptoDate</function></funcdef>
301 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
305 <refsect1><title>Description</title>
307 Checks all of the files related to <parameter>config</parameter> and returns
308 whether any of them has been modified since the configuration was created.
309 If <parameter>config</parameter> is NULL, the current configuration is used.
314 fontconfig/doc/func.sgml
316 Copyright © 2003 Keith Packard
318 Permission to use, copy, modify, distribute, and sell this software and its
319 documentation for any purpose is hereby granted without fee, provided that
320 the above copyright notice appear in all copies and that both that
321 copyright notice and this permission notice appear in supporting
322 documentation, and that the name of the author(s) not be used in
323 advertising or publicity pertaining to distribution of the software without
324 specific, written prior permission. The authors make no
325 representations about the suitability of this software for any purpose. It
326 is provided "as is" without express or implied warranty.
328 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
329 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
330 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
331 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
332 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
333 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
334 PERFORMANCE OF THIS SOFTWARE.
336 <refentry id="FcConfigHome">
338 <refentrytitle>FcConfigHome</refentrytitle>
339 <manvolnum>3</manvolnum>
340 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
343 <refname>FcConfigHome</refname>
344 <refpurpose>return the current home directory.</refpurpose>
349 #include <fontconfig/fontconfig.h>
352 <funcdef>FcChar8 * <function>FcConfigHome</function></funcdef>
353 <paramdef>void<parameter></parameter></paramdef>
357 <refsect1><title>Description</title>
359 Return the current user's home directory, if it is available, and if using it
360 is enabled, and NULL otherwise.
361 See also <function>FcConfigEnableHome</function>).
366 fontconfig/doc/func.sgml
368 Copyright © 2003 Keith Packard
370 Permission to use, copy, modify, distribute, and sell this software and its
371 documentation for any purpose is hereby granted without fee, provided that
372 the above copyright notice appear in all copies and that both that
373 copyright notice and this permission notice appear in supporting
374 documentation, and that the name of the author(s) not be used in
375 advertising or publicity pertaining to distribution of the software without
376 specific, written prior permission. The authors make no
377 representations about the suitability of this software for any purpose. It
378 is provided "as is" without express or implied warranty.
380 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
381 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
382 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
383 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
384 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
385 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
386 PERFORMANCE OF THIS SOFTWARE.
388 <refentry id="FcConfigEnableHome">
390 <refentrytitle>FcConfigEnableHome</refentrytitle>
391 <manvolnum>3</manvolnum>
392 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
395 <refname>FcConfigEnableHome</refname>
396 <refpurpose>controls use of the home directory.</refpurpose>
401 #include <fontconfig/fontconfig.h>
404 <funcdef>FcBool <function>FcConfigEnableHome</function></funcdef>
405 <paramdef>FcBool <parameter>enable</parameter></paramdef>
409 <refsect1><title>Description</title>
411 If <parameter>enable</parameter> is FcTrue, then Fontconfig will use various
412 files which are specified relative to the user's home directory (using the ~
413 notation in the configuration). When <parameter>enable</parameter> is
414 FcFalse, then all use of the home directory in these contexts will be
415 disabled. The previous setting of the value is returned.
420 fontconfig/doc/func.sgml
422 Copyright © 2003 Keith Packard
424 Permission to use, copy, modify, distribute, and sell this software and its
425 documentation for any purpose is hereby granted without fee, provided that
426 the above copyright notice appear in all copies and that both that
427 copyright notice and this permission notice appear in supporting
428 documentation, and that the name of the author(s) not be used in
429 advertising or publicity pertaining to distribution of the software without
430 specific, written prior permission. The authors make no
431 representations about the suitability of this software for any purpose. It
432 is provided "as is" without express or implied warranty.
434 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
435 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
436 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
437 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
438 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
439 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
440 PERFORMANCE OF THIS SOFTWARE.
442 <refentry id="FcConfigBuildFonts">
444 <refentrytitle>FcConfigBuildFonts</refentrytitle>
445 <manvolnum>3</manvolnum>
446 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
449 <refname>FcConfigBuildFonts</refname>
450 <refpurpose>Build font database</refpurpose>
455 #include <fontconfig/fontconfig.h>
458 <funcdef>FcBool <function>FcConfigBuildFonts</function></funcdef>
459 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
463 <refsect1><title>Description</title>
465 Builds the set of available fonts for the given configuration. Note that
466 any changes to the configuration after this call have indeterminate effects.
467 Returns FcFalse if this operation runs out of memory.
468 If <parameter>config</parameter> is NULL, the current configuration is used.
473 fontconfig/doc/func.sgml
475 Copyright © 2003 Keith Packard
477 Permission to use, copy, modify, distribute, and sell this software and its
478 documentation for any purpose is hereby granted without fee, provided that
479 the above copyright notice appear in all copies and that both that
480 copyright notice and this permission notice appear in supporting
481 documentation, and that the name of the author(s) not be used in
482 advertising or publicity pertaining to distribution of the software without
483 specific, written prior permission. The authors make no
484 representations about the suitability of this software for any purpose. It
485 is provided "as is" without express or implied warranty.
487 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
488 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
489 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
490 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
491 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
492 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
493 PERFORMANCE OF THIS SOFTWARE.
495 <refentry id="FcConfigGetConfigDirs">
497 <refentrytitle>FcConfigGetConfigDirs</refentrytitle>
498 <manvolnum>3</manvolnum>
499 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
502 <refname>FcConfigGetConfigDirs</refname>
503 <refpurpose>Get config directories</refpurpose>
508 #include <fontconfig/fontconfig.h>
511 <funcdef>FcStrList * <function>FcConfigGetConfigDirs</function></funcdef>
512 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
516 <refsect1><title>Description</title>
518 Returns the list of font directories specified in the configuration files
519 for <parameter>config</parameter>. Does not include any subdirectories.
520 If <parameter>config</parameter> is NULL, the current configuration is used.
525 fontconfig/doc/func.sgml
527 Copyright © 2003 Keith Packard
529 Permission to use, copy, modify, distribute, and sell this software and its
530 documentation for any purpose is hereby granted without fee, provided that
531 the above copyright notice appear in all copies and that both that
532 copyright notice and this permission notice appear in supporting
533 documentation, and that the name of the author(s) not be used in
534 advertising or publicity pertaining to distribution of the software without
535 specific, written prior permission. The authors make no
536 representations about the suitability of this software for any purpose. It
537 is provided "as is" without express or implied warranty.
539 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
540 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
541 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
542 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
543 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
544 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
545 PERFORMANCE OF THIS SOFTWARE.
547 <refentry id="FcConfigGetFontDirs">
549 <refentrytitle>FcConfigGetFontDirs</refentrytitle>
550 <manvolnum>3</manvolnum>
551 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
554 <refname>FcConfigGetFontDirs</refname>
555 <refpurpose>Get font directories</refpurpose>
560 #include <fontconfig/fontconfig.h>
563 <funcdef>FcStrList * <function>FcConfigGetFontDirs</function></funcdef>
564 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
568 <refsect1><title>Description</title>
570 Returns the list of font directories in <parameter>config</parameter>. This includes the
571 configured font directories along with any directories below those in the
573 If <parameter>config</parameter> is NULL, the current configuration is used.
578 fontconfig/doc/func.sgml
580 Copyright © 2003 Keith Packard
582 Permission to use, copy, modify, distribute, and sell this software and its
583 documentation for any purpose is hereby granted without fee, provided that
584 the above copyright notice appear in all copies and that both that
585 copyright notice and this permission notice appear in supporting
586 documentation, and that the name of the author(s) not be used in
587 advertising or publicity pertaining to distribution of the software without
588 specific, written prior permission. The authors make no
589 representations about the suitability of this software for any purpose. It
590 is provided "as is" without express or implied warranty.
592 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
593 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
594 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
595 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
596 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
597 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
598 PERFORMANCE OF THIS SOFTWARE.
600 <refentry id="FcConfigGetConfigFiles">
602 <refentrytitle>FcConfigGetConfigFiles</refentrytitle>
603 <manvolnum>3</manvolnum>
604 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
607 <refname>FcConfigGetConfigFiles</refname>
608 <refpurpose>Get config files</refpurpose>
613 #include <fontconfig/fontconfig.h>
616 <funcdef>FcStrList * <function>FcConfigGetConfigFiles</function></funcdef>
617 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
621 <refsect1><title>Description</title>
623 Returns the list of known configuration files used to generate <parameter>config</parameter>.
624 If <parameter>config</parameter> is NULL, the current configuration is used.
629 fontconfig/doc/func.sgml
631 Copyright © 2003 Keith Packard
633 Permission to use, copy, modify, distribute, and sell this software and its
634 documentation for any purpose is hereby granted without fee, provided that
635 the above copyright notice appear in all copies and that both that
636 copyright notice and this permission notice appear in supporting
637 documentation, and that the name of the author(s) not be used in
638 advertising or publicity pertaining to distribution of the software without
639 specific, written prior permission. The authors make no
640 representations about the suitability of this software for any purpose. It
641 is provided "as is" without express or implied warranty.
643 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
644 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
645 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
646 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
647 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
648 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
649 PERFORMANCE OF THIS SOFTWARE.
651 <refentry id="FcConfigGetCache">
653 <refentrytitle>FcConfigGetCache</refentrytitle>
654 <manvolnum>3</manvolnum>
655 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
658 <refname>FcConfigGetCache</refname>
659 <refpurpose>DEPRECATED used to return per-user cache filename</refpurpose>
664 #include <fontconfig/fontconfig.h>
667 <funcdef>FcChar8 * <function>FcConfigGetCache</function></funcdef>
668 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
672 <refsect1><title>Description</title>
674 With fontconfig no longer using per-user cache files, this function now
675 simply returns NULL to indicate that no per-user file exists.
680 fontconfig/doc/func.sgml
682 Copyright © 2003 Keith Packard
684 Permission to use, copy, modify, distribute, and sell this software and its
685 documentation for any purpose is hereby granted without fee, provided that
686 the above copyright notice appear in all copies and that both that
687 copyright notice and this permission notice appear in supporting
688 documentation, and that the name of the author(s) not be used in
689 advertising or publicity pertaining to distribution of the software without
690 specific, written prior permission. The authors make no
691 representations about the suitability of this software for any purpose. It
692 is provided "as is" without express or implied warranty.
694 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
695 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
696 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
697 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
698 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
699 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
700 PERFORMANCE OF THIS SOFTWARE.
702 <refentry id="FcConfigGetCacheDirs">
704 <refentrytitle>FcConfigGetCacheDirs</refentrytitle>
705 <manvolnum>3</manvolnum>
706 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
709 <refname>FcConfigGetCacheDirs</refname>
710 <refpurpose>return the list of directories searched for cache files</refpurpose>
715 #include <fontconfig/fontconfig.h>
718 <funcdef>FcStrList * <function>FcConfigGetCacheDirs</function></funcdef>
719 <paramdef>const FcConfig *<parameter>config</parameter></paramdef>
723 <refsect1><title>Description</title>
725 <function>FcConfigGetCacheDirs</function> returns a string list containing
726 all of the directories that fontconfig will search when attempting to load a
727 cache file for a font directory.
728 If <parameter>config</parameter> is NULL, the current configuration is used.
733 fontconfig/doc/func.sgml
735 Copyright © 2003 Keith Packard
737 Permission to use, copy, modify, distribute, and sell this software and its
738 documentation for any purpose is hereby granted without fee, provided that
739 the above copyright notice appear in all copies and that both that
740 copyright notice and this permission notice appear in supporting
741 documentation, and that the name of the author(s) not be used in
742 advertising or publicity pertaining to distribution of the software without
743 specific, written prior permission. The authors make no
744 representations about the suitability of this software for any purpose. It
745 is provided "as is" without express or implied warranty.
747 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
748 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
749 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
750 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
751 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
752 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
753 PERFORMANCE OF THIS SOFTWARE.
755 <refentry id="FcConfigGetFonts">
757 <refentrytitle>FcConfigGetFonts</refentrytitle>
758 <manvolnum>3</manvolnum>
759 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
762 <refname>FcConfigGetFonts</refname>
763 <refpurpose>Get config font set</refpurpose>
768 #include <fontconfig/fontconfig.h>
771 <funcdef>FcFontSet * <function>FcConfigGetFonts</function></funcdef>
772 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
773 <paramdef>FcSetName <parameter>set</parameter></paramdef>
777 <refsect1><title>Description</title>
779 Returns one of the two sets of fonts from the configuration as specified
780 by <parameter>set</parameter>. This font set is owned by the library and must
781 not be modified or freed.
782 If <parameter>config</parameter> is NULL, the current configuration is used.
787 fontconfig/doc/func.sgml
789 Copyright © 2003 Keith Packard
791 Permission to use, copy, modify, distribute, and sell this software and its
792 documentation for any purpose is hereby granted without fee, provided that
793 the above copyright notice appear in all copies and that both that
794 copyright notice and this permission notice appear in supporting
795 documentation, and that the name of the author(s) not be used in
796 advertising or publicity pertaining to distribution of the software without
797 specific, written prior permission. The authors make no
798 representations about the suitability of this software for any purpose. It
799 is provided "as is" without express or implied warranty.
801 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
802 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
803 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
804 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
805 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
806 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
807 PERFORMANCE OF THIS SOFTWARE.
809 <refentry id="FcConfigGetBlanks">
811 <refentrytitle>FcConfigGetBlanks</refentrytitle>
812 <manvolnum>3</manvolnum>
813 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
816 <refname>FcConfigGetBlanks</refname>
817 <refpurpose>Get config blanks</refpurpose>
822 #include <fontconfig/fontconfig.h>
825 <funcdef>FcBlanks * <function>FcConfigGetBlanks</function></funcdef>
826 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
830 <refsect1><title>Description</title>
832 Returns the FcBlanks object associated with the given configuration, if no
833 blanks were present in the configuration, this function will return 0.
834 The returned FcBlanks object if not NULL, is valid as long as the owning
836 If <parameter>config</parameter> is NULL, the current configuration is used.
841 fontconfig/doc/func.sgml
843 Copyright © 2003 Keith Packard
845 Permission to use, copy, modify, distribute, and sell this software and its
846 documentation for any purpose is hereby granted without fee, provided that
847 the above copyright notice appear in all copies and that both that
848 copyright notice and this permission notice appear in supporting
849 documentation, and that the name of the author(s) not be used in
850 advertising or publicity pertaining to distribution of the software without
851 specific, written prior permission. The authors make no
852 representations about the suitability of this software for any purpose. It
853 is provided "as is" without express or implied warranty.
855 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
856 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
857 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
858 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
859 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
860 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
861 PERFORMANCE OF THIS SOFTWARE.
863 <refentry id="FcConfigGetRescanInterval">
865 <refentrytitle>FcConfigGetRescanInterval</refentrytitle>
866 <manvolnum>3</manvolnum>
867 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
870 <refname>FcConfigGetRescanInterval</refname>
871 <refpurpose>Get config rescan interval</refpurpose>
876 #include <fontconfig/fontconfig.h>
879 <funcdef>int <function>FcConfigGetRescanInterval</function></funcdef>
880 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
884 <refsect1><title>Description</title>
886 Returns the interval between automatic checks of the configuration (in
887 seconds) specified in <parameter>config</parameter>. The configuration is checked during
888 a call to FcFontList when this interval has passed since the last check.
889 An interval setting of zero disables automatic checks.
890 If <parameter>config</parameter> is NULL, the current configuration is used.
895 fontconfig/doc/func.sgml
897 Copyright © 2003 Keith Packard
899 Permission to use, copy, modify, distribute, and sell this software and its
900 documentation for any purpose is hereby granted without fee, provided that
901 the above copyright notice appear in all copies and that both that
902 copyright notice and this permission notice appear in supporting
903 documentation, and that the name of the author(s) not be used in
904 advertising or publicity pertaining to distribution of the software without
905 specific, written prior permission. The authors make no
906 representations about the suitability of this software for any purpose. It
907 is provided "as is" without express or implied warranty.
909 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
910 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
911 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
912 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
913 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
914 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
915 PERFORMANCE OF THIS SOFTWARE.
917 <refentry id="FcConfigSetRescanInterval">
919 <refentrytitle>FcConfigSetRescanInterval</refentrytitle>
920 <manvolnum>3</manvolnum>
921 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
924 <refname>FcConfigSetRescanInterval</refname>
925 <refpurpose>Set config rescan interval</refpurpose>
930 #include <fontconfig/fontconfig.h>
933 <funcdef>FcBool <function>FcConfigSetRescanInterval</function></funcdef>
934 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
935 <paramdef>int <parameter>rescanInterval</parameter></paramdef>
939 <refsect1><title>Description</title>
941 Sets the rescan interval. Returns FcFalse if the interval cannot be set (due
942 to allocation failure). Otherwise returns FcTrue.
943 An interval setting of zero disables automatic checks.
944 If <parameter>config</parameter> is NULL, the current configuration is used.
949 fontconfig/doc/func.sgml
951 Copyright © 2003 Keith Packard
953 Permission to use, copy, modify, distribute, and sell this software and its
954 documentation for any purpose is hereby granted without fee, provided that
955 the above copyright notice appear in all copies and that both that
956 copyright notice and this permission notice appear in supporting
957 documentation, and that the name of the author(s) not be used in
958 advertising or publicity pertaining to distribution of the software without
959 specific, written prior permission. The authors make no
960 representations about the suitability of this software for any purpose. It
961 is provided "as is" without express or implied warranty.
963 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
964 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
965 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
966 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
967 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
968 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
969 PERFORMANCE OF THIS SOFTWARE.
971 <refentry id="FcConfigAppFontAddFile">
973 <refentrytitle>FcConfigAppFontAddFile</refentrytitle>
974 <manvolnum>3</manvolnum>
975 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
978 <refname>FcConfigAppFontAddFile</refname>
979 <refpurpose>Add font file to font database</refpurpose>
984 #include <fontconfig/fontconfig.h>
987 <funcdef>FcBool <function>FcConfigAppFontAddFile</function></funcdef>
988 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
989 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
993 <refsect1><title>Description</title>
995 Adds an application-specific font to the configuration. Returns FcFalse
996 if the fonts cannot be added (due to allocation failure or no fonts found).
997 Otherwise returns FcTrue. If <parameter>config</parameter> is NULL,
998 the current configuration is used.
1003 fontconfig/doc/func.sgml
1005 Copyright © 2003 Keith Packard
1007 Permission to use, copy, modify, distribute, and sell this software and its
1008 documentation for any purpose is hereby granted without fee, provided that
1009 the above copyright notice appear in all copies and that both that
1010 copyright notice and this permission notice appear in supporting
1011 documentation, and that the name of the author(s) not be used in
1012 advertising or publicity pertaining to distribution of the software without
1013 specific, written prior permission. The authors make no
1014 representations about the suitability of this software for any purpose. It
1015 is provided "as is" without express or implied warranty.
1017 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1018 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1019 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1020 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1021 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1022 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1023 PERFORMANCE OF THIS SOFTWARE.
1025 <refentry id="FcConfigAppFontAddDir">
1027 <refentrytitle>FcConfigAppFontAddDir</refentrytitle>
1028 <manvolnum>3</manvolnum>
1029 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1032 <refname>FcConfigAppFontAddDir</refname>
1033 <refpurpose>Add fonts from directory to font database</refpurpose>
1038 #include <fontconfig/fontconfig.h>
1041 <funcdef>FcBool <function>FcConfigAppFontAddDir</function></funcdef>
1042 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1043 <paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
1047 <refsect1><title>Description</title>
1049 Scans the specified directory for fonts, adding each one found to the
1050 application-specific set of fonts. Returns FcFalse
1051 if the fonts cannot be added (due to allocation failure or no fonts found).
1052 Otherwise returns FcTrue. If <parameter>config</parameter> is NULL,
1053 the current configuration is used.
1058 fontconfig/doc/func.sgml
1060 Copyright © 2003 Keith Packard
1062 Permission to use, copy, modify, distribute, and sell this software and its
1063 documentation for any purpose is hereby granted without fee, provided that
1064 the above copyright notice appear in all copies and that both that
1065 copyright notice and this permission notice appear in supporting
1066 documentation, and that the name of the author(s) not be used in
1067 advertising or publicity pertaining to distribution of the software without
1068 specific, written prior permission. The authors make no
1069 representations about the suitability of this software for any purpose. It
1070 is provided "as is" without express or implied warranty.
1072 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1073 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1074 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1075 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1076 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1077 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1078 PERFORMANCE OF THIS SOFTWARE.
1080 <refentry id="FcConfigAppFontClear">
1082 <refentrytitle>FcConfigAppFontClear</refentrytitle>
1083 <manvolnum>3</manvolnum>
1084 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1087 <refname>FcConfigAppFontClear</refname>
1088 <refpurpose>Remove all app fonts from font database</refpurpose>
1093 #include <fontconfig/fontconfig.h>
1096 <funcdef>void <function>FcConfigAppFontClear</function></funcdef>
1097 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1101 <refsect1><title>Description</title>
1103 Clears the set of application-specific fonts.
1104 If <parameter>config</parameter> is NULL, the current configuration is used.
1109 fontconfig/doc/func.sgml
1111 Copyright © 2003 Keith Packard
1113 Permission to use, copy, modify, distribute, and sell this software and its
1114 documentation for any purpose is hereby granted without fee, provided that
1115 the above copyright notice appear in all copies and that both that
1116 copyright notice and this permission notice appear in supporting
1117 documentation, and that the name of the author(s) not be used in
1118 advertising or publicity pertaining to distribution of the software without
1119 specific, written prior permission. The authors make no
1120 representations about the suitability of this software for any purpose. It
1121 is provided "as is" without express or implied warranty.
1123 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1124 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1125 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1126 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1127 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1128 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1129 PERFORMANCE OF THIS SOFTWARE.
1131 <refentry id="FcConfigSubstituteWithPat">
1133 <refentrytitle>FcConfigSubstituteWithPat</refentrytitle>
1134 <manvolnum>3</manvolnum>
1135 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1138 <refname>FcConfigSubstituteWithPat</refname>
1139 <refpurpose>Execute substitutions</refpurpose>
1144 #include <fontconfig/fontconfig.h>
1147 <funcdef>FcBool <function>FcConfigSubstituteWithPat</function></funcdef>
1148 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1149 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
1150 <paramdef>FcPattern *<parameter>p_pat</parameter></paramdef>
1151 <paramdef>FcMatchKind <parameter>kind</parameter></paramdef>
1155 <refsect1><title>Description</title>
1157 Performs the sequence of pattern modification operations, if <parameter>kind</parameter> is
1158 FcMatchPattern, then those tagged as pattern operations are applied, else
1159 if <parameter>kind</parameter> is FcMatchFont, those tagged as font operations are applied and
1160 p_pat is used for <test> elements with target=pattern. Returns FcFalse
1161 if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue.
1162 If <parameter>config</parameter> is NULL, the current configuration is used.
1167 fontconfig/doc/func.sgml
1169 Copyright © 2003 Keith Packard
1171 Permission to use, copy, modify, distribute, and sell this software and its
1172 documentation for any purpose is hereby granted without fee, provided that
1173 the above copyright notice appear in all copies and that both that
1174 copyright notice and this permission notice appear in supporting
1175 documentation, and that the name of the author(s) not be used in
1176 advertising or publicity pertaining to distribution of the software without
1177 specific, written prior permission. The authors make no
1178 representations about the suitability of this software for any purpose. It
1179 is provided "as is" without express or implied warranty.
1181 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1182 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1183 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1184 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1185 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1186 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1187 PERFORMANCE OF THIS SOFTWARE.
1189 <refentry id="FcConfigSubstitute">
1191 <refentrytitle>FcConfigSubstitute</refentrytitle>
1192 <manvolnum>3</manvolnum>
1193 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1196 <refname>FcConfigSubstitute</refname>
1197 <refpurpose>Execute substitutions</refpurpose>
1202 #include <fontconfig/fontconfig.h>
1205 <funcdef>FcBool <function>FcConfigSubstitute</function></funcdef>
1206 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1207 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
1208 <paramdef>FcMatchKind <parameter>kind</parameter></paramdef>
1212 <refsect1><title>Description</title>
1214 Calls FcConfigSubstituteWithPat setting p_pat to NULL. Returns FcFalse
1215 if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue.
1216 If <parameter>config</parameter> is NULL, the current configuration is used.
1221 fontconfig/doc/func.sgml
1223 Copyright © 2003 Keith Packard
1225 Permission to use, copy, modify, distribute, and sell this software and its
1226 documentation for any purpose is hereby granted without fee, provided that
1227 the above copyright notice appear in all copies and that both that
1228 copyright notice and this permission notice appear in supporting
1229 documentation, and that the name of the author(s) not be used in
1230 advertising or publicity pertaining to distribution of the software without
1231 specific, written prior permission. The authors make no
1232 representations about the suitability of this software for any purpose. It
1233 is provided "as is" without express or implied warranty.
1235 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1236 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1237 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1238 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1239 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1240 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1241 PERFORMANCE OF THIS SOFTWARE.
1243 <refentry id="FcFontMatch">
1245 <refentrytitle>FcFontMatch</refentrytitle>
1246 <manvolnum>3</manvolnum>
1247 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1250 <refname>FcFontMatch</refname>
1251 <refpurpose>Return best font</refpurpose>
1256 #include <fontconfig/fontconfig.h>
1259 <funcdef>FcPattern * <function>FcFontMatch</function></funcdef>
1260 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1261 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
1262 <paramdef>FcResult *<parameter>result</parameter></paramdef>
1266 <refsect1><title>Description</title>
1268 Finds the font in <parameter>sets</parameter> most closely matching
1269 <parameter>pattern</parameter> and returns the result of
1270 <function>FcFontRenderPrepare</function> for that font and the provided
1271 pattern. This function should be called only after
1272 <function>FcConfigSubstitute</function> and
1273 <function>FcDefaultSubstitute</function> have been called for
1274 <parameter>p</parameter>; otherwise the results will not be correct.
1275 If <parameter>config</parameter> is NULL, the current configuration is used.
1280 fontconfig/doc/func.sgml
1282 Copyright © 2003 Keith Packard
1284 Permission to use, copy, modify, distribute, and sell this software and its
1285 documentation for any purpose is hereby granted without fee, provided that
1286 the above copyright notice appear in all copies and that both that
1287 copyright notice and this permission notice appear in supporting
1288 documentation, and that the name of the author(s) not be used in
1289 advertising or publicity pertaining to distribution of the software without
1290 specific, written prior permission. The authors make no
1291 representations about the suitability of this software for any purpose. It
1292 is provided "as is" without express or implied warranty.
1294 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1295 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1296 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1297 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1298 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1299 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1300 PERFORMANCE OF THIS SOFTWARE.
1302 <refentry id="FcFontSort">
1304 <refentrytitle>FcFontSort</refentrytitle>
1305 <manvolnum>3</manvolnum>
1306 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1309 <refname>FcFontSort</refname>
1310 <refpurpose>Return list of matching fonts</refpurpose>
1315 #include <fontconfig/fontconfig.h>
1318 <funcdef>FcFontSet * <function>FcFontSort</function></funcdef>
1319 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1320 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
1321 <paramdef>FcBool <parameter>trim</parameter></paramdef>
1322 <paramdef>FcCharSet **<parameter>csp</parameter></paramdef>
1323 <paramdef>FcResult *<parameter>result</parameter></paramdef>
1327 <refsect1><title>Description</title>
1329 Returns the list of fonts sorted by closeness to <parameter>p</parameter>. If <parameter>trim</parameter> is FcTrue,
1330 elements in the list which don't include Unicode coverage not provided by
1331 earlier elements in the list are elided. The union of Unicode coverage of
1332 all of the fonts is returned in <parameter>csp</parameter>, if <parameter>csp</parameter> is not NULL. This function
1333 should be called only after FcConfigSubstitute and FcDefaultSubstitute have
1334 been called for <parameter>p</parameter>; otherwise the results will not be correct.
1336 The returned FcFontSet references FcPattern structures which may be shared
1337 by the return value from multiple FcFontSort calls, applications must not
1338 modify these patterns. Instead, they should be passed, along with <parameter>p</parameter> to
1339 <function>FcFontRenderPrepare</function> which combines them into a complete pattern.
1341 The FcFontSet returned by FcFontSort is destroyed by calling FcFontSetDestroy.
1342 If <parameter>config</parameter> is NULL, the current configuration is used.
1347 fontconfig/doc/func.sgml
1349 Copyright © 2003 Keith Packard
1351 Permission to use, copy, modify, distribute, and sell this software and its
1352 documentation for any purpose is hereby granted without fee, provided that
1353 the above copyright notice appear in all copies and that both that
1354 copyright notice and this permission notice appear in supporting
1355 documentation, and that the name of the author(s) not be used in
1356 advertising or publicity pertaining to distribution of the software without
1357 specific, written prior permission. The authors make no
1358 representations about the suitability of this software for any purpose. It
1359 is provided "as is" without express or implied warranty.
1361 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1362 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1363 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1364 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1365 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1366 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1367 PERFORMANCE OF THIS SOFTWARE.
1369 <refentry id="FcFontRenderPrepare">
1371 <refentrytitle>FcFontRenderPrepare</refentrytitle>
1372 <manvolnum>3</manvolnum>
1373 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1376 <refname>FcFontRenderPrepare</refname>
1377 <refpurpose>Prepare pattern for loading font file</refpurpose>
1382 #include <fontconfig/fontconfig.h>
1385 <funcdef>FcPattern * <function>FcFontRenderPrepare</function></funcdef>
1386 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1387 <paramdef>FcPattern *<parameter>pat</parameter></paramdef>
1388 <paramdef>FcPattern *<parameter>font</parameter></paramdef>
1392 <refsect1><title>Description</title>
1394 Creates a new pattern consisting of elements of <parameter>font</parameter> not appearing
1395 in <parameter>pat</parameter>, elements of <parameter>pat</parameter> not appearing in <parameter>font</parameter> and the best matching
1396 value from <parameter>pat</parameter> for elements appearing in both. The result is passed to
1397 FcConfigSubstituteWithPat with <parameter>kind</parameter> FcMatchFont and then returned.
1402 fontconfig/doc/func.sgml
1404 Copyright © 2003 Keith Packard
1406 Permission to use, copy, modify, distribute, and sell this software and its
1407 documentation for any purpose is hereby granted without fee, provided that
1408 the above copyright notice appear in all copies and that both that
1409 copyright notice and this permission notice appear in supporting
1410 documentation, and that the name of the author(s) not be used in
1411 advertising or publicity pertaining to distribution of the software without
1412 specific, written prior permission. The authors make no
1413 representations about the suitability of this software for any purpose. It
1414 is provided "as is" without express or implied warranty.
1416 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1417 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1418 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1419 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1420 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1421 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1422 PERFORMANCE OF THIS SOFTWARE.
1424 <refentry id="FcFontList">
1426 <refentrytitle>FcFontList</refentrytitle>
1427 <manvolnum>3</manvolnum>
1428 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1431 <refname>FcFontList</refname>
1432 <refpurpose>List fonts</refpurpose>
1437 #include <fontconfig/fontconfig.h>
1440 <funcdef>FcFontSet * <function>FcFontList</function></funcdef>
1441 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1442 <paramdef>FcPattern *<parameter>p</parameter></paramdef>
1443 <paramdef>FcObjectSet *<parameter>os</parameter></paramdef>
1447 <refsect1><title>Description</title>
1449 Selects fonts matching <parameter>p</parameter>, creates patterns from those fonts containing
1450 only the objects in <parameter>os</parameter> and returns the set of unique such patterns.
1451 If <parameter>config</parameter> is NULL, the default configuration is checked
1452 to be up to date, and used.
1457 fontconfig/doc/func.sgml
1459 Copyright © 2003 Keith Packard
1461 Permission to use, copy, modify, distribute, and sell this software and its
1462 documentation for any purpose is hereby granted without fee, provided that
1463 the above copyright notice appear in all copies and that both that
1464 copyright notice and this permission notice appear in supporting
1465 documentation, and that the name of the author(s) not be used in
1466 advertising or publicity pertaining to distribution of the software without
1467 specific, written prior permission. The authors make no
1468 representations about the suitability of this software for any purpose. It
1469 is provided "as is" without express or implied warranty.
1471 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1472 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1473 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1474 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1475 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1476 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1477 PERFORMANCE OF THIS SOFTWARE.
1479 <refentry id="FcConfigFilename">
1481 <refentrytitle>FcConfigFilename</refentrytitle>
1482 <manvolnum>3</manvolnum>
1483 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1486 <refname>FcConfigFilename</refname>
1487 <refpurpose>Find a config file</refpurpose>
1492 #include <fontconfig/fontconfig.h>
1495 <funcdef>FcChar8 * <function>FcConfigFilename</function></funcdef>
1496 <paramdef>const FcChar8 *<parameter>name</parameter></paramdef>
1500 <refsect1><title>Description</title>
1502 Given the specified external entity name, return the associated filename.
1503 This provides applications a way to convert various configuration file
1504 references into filename form.
1506 A null or empty <parameter>name</parameter> indicates that the default configuration file should
1507 be used; which file this references can be overridden with the
1508 FONTCONFIG_FILE environment variable. Next, if the name starts with <parameter>~</parameter>, it
1509 refers to a file in the current users home directory. Otherwise if the name
1510 doesn't start with '/', it refers to a file in the default configuration
1511 directory; the built-in default directory can be overridden with the
1512 FONTCONFIG_PATH environment variable.
1517 fontconfig/doc/func.sgml
1519 Copyright © 2003 Keith Packard
1521 Permission to use, copy, modify, distribute, and sell this software and its
1522 documentation for any purpose is hereby granted without fee, provided that
1523 the above copyright notice appear in all copies and that both that
1524 copyright notice and this permission notice appear in supporting
1525 documentation, and that the name of the author(s) not be used in
1526 advertising or publicity pertaining to distribution of the software without
1527 specific, written prior permission. The authors make no
1528 representations about the suitability of this software for any purpose. It
1529 is provided "as is" without express or implied warranty.
1531 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1532 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1533 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1534 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1535 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1536 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1537 PERFORMANCE OF THIS SOFTWARE.
1539 <refentry id="FcConfigParseAndLoad">
1541 <refentrytitle>FcConfigParseAndLoad</refentrytitle>
1542 <manvolnum>3</manvolnum>
1543 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1546 <refname>FcConfigParseAndLoad</refname>
1547 <refpurpose>load a configuration file</refpurpose>
1552 #include <fontconfig/fontconfig.h>
1555 <funcdef>FcBool <function>FcConfigParseAndLoad</function></funcdef>
1556 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1557 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
1558 <paramdef>FcBool <parameter>complain</parameter></paramdef>
1562 <refsect1><title>Description</title>
1564 Walks the configuration in 'file' and constructs the internal representation
1565 in 'config'. Any include files referenced from within 'file' will be loaded
1566 and parsed. If 'complain' is FcFalse, no warning will be displayed if
1567 'file' does not exist. Error and warning messages will be output to stderr.
1568 Returns FcFalse if some error occurred while loading the file, either a
1569 parse error, semantic error or allocation failure. Otherwise returns FcTrue.
1574 fontconfig/doc/func.sgml
1576 Copyright © 2003 Keith Packard
1578 Permission to use, copy, modify, distribute, and sell this software and its
1579 documentation for any purpose is hereby granted without fee, provided that
1580 the above copyright notice appear in all copies and that both that
1581 copyright notice and this permission notice appear in supporting
1582 documentation, and that the name of the author(s) not be used in
1583 advertising or publicity pertaining to distribution of the software without
1584 specific, written prior permission. The authors make no
1585 representations about the suitability of this software for any purpose. It
1586 is provided "as is" without express or implied warranty.
1588 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1589 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1590 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1591 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1592 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1593 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1594 PERFORMANCE OF THIS SOFTWARE.
1596 <refentry id="FcConfigGetSysRoot">
1598 <refentrytitle>FcConfigGetSysRoot</refentrytitle>
1599 <manvolnum>3</manvolnum>
1600 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1603 <refname>FcConfigGetSysRoot</refname>
1604 <refpurpose>Obtain the system root directory</refpurpose>
1609 #include <fontconfig/fontconfig.h>
1612 <funcdef>const FcChar8 * <function>FcConfigGetSysRoot</function></funcdef>
1613 <paramdef>const FcConfig *<parameter>config</parameter></paramdef>
1617 <refsect1><title>Description</title>
1619 Obtrains the system root directory in 'config' if available.
1622 <refsect1><title>Since</title>
1623 <para>version 2.10.92</para>
1627 fontconfig/doc/func.sgml
1629 Copyright © 2003 Keith Packard
1631 Permission to use, copy, modify, distribute, and sell this software and its
1632 documentation for any purpose is hereby granted without fee, provided that
1633 the above copyright notice appear in all copies and that both that
1634 copyright notice and this permission notice appear in supporting
1635 documentation, and that the name of the author(s) not be used in
1636 advertising or publicity pertaining to distribution of the software without
1637 specific, written prior permission. The authors make no
1638 representations about the suitability of this software for any purpose. It
1639 is provided "as is" without express or implied warranty.
1641 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1642 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1643 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1644 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1645 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1646 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1647 PERFORMANCE OF THIS SOFTWARE.
1649 <refentry id="FcConfigSetSysRoot">
1651 <refentrytitle>FcConfigSetSysRoot</refentrytitle>
1652 <manvolnum>3</manvolnum>
1653 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
1656 <refname>FcConfigSetSysRoot</refname>
1657 <refpurpose>Set the system root directory</refpurpose>
1662 #include <fontconfig/fontconfig.h>
1665 <funcdef>void <function>FcConfigSetSysRoot</function></funcdef>
1666 <paramdef>FcConfig *<parameter>config</parameter></paramdef>
1667 <paramdef>const FcChar8 *<parameter>sysroot</parameter></paramdef>
1671 <refsect1><title>Description</title>
1673 Set 'sysroot' as the system root directory. fontconfig prepend 'sysroot'
1674 to the cache directories in order to allow people to generate caches at
1675 the build time. Note that this causes changing current config. i.e.
1676 this function calls FcConfigSetCurrent() internally.
1679 <refsect1><title>Since</title>
1680 <para>version 2.10.92</para>