]> git.wh0rd.org Git - fontconfig.git/blob - fontconfig/fontconfig.h
Add fontversion field
[fontconfig.git] / fontconfig / fontconfig.h
1 /*
2  * $XFree86: xc/lib/fontconfig/fontconfig/fontconfig.h,v 1.28 2002/08/24 20:08:53 keithp Exp $
3  *
4  * Copyright © 2001 Keith Packard, member of The XFree86 Project, Inc.
5  *
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 Keith Packard not be used in
11  * advertising or publicity pertaining to distribution of the software without
12  * specific, written prior permission.  Keith Packard makes no
13  * representations about the suitability of this software for any purpose.  It
14  * is provided "as is" without express or implied warranty.
15  *
16  * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18  * EVENT SHALL KEITH PACKARD 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.
23  */
24
25 #ifndef _FONTCONFIG_H_
26 #define _FONTCONFIG_H_
27
28 #include <stdarg.h>
29
30 typedef unsigned char   FcChar8;
31 typedef unsigned short  FcChar16;
32 typedef unsigned int    FcChar32;
33 typedef int             FcBool;
34
35 /*
36  * Current Fontconfig version number
37  */
38 #define FC_MAJOR        1
39 #define FC_MINOR        0
40 #define FC_REVISION     1
41
42 #define FC_VERSION      ((FC_MAJOR * 10000) + (FC_MINOR * 100) + (FC_REVISION))
43
44 /*
45  * Current font cache file format version
46  * This is appended to the cache files so that multiple
47  * versions of the library will peacefully coexist
48  *
49  * Change this value whenever the disk format for the cache file
50  * changes in any non-compatible way.  Try to avoid such changes as
51  * it means multiple copies of the font information.
52  */
53
54 #define FC_CACHE_VERSION    "1"
55
56 #define FcTrue          1
57 #define FcFalse         0
58
59 #define FC_FAMILY           "family"            /* String */
60 #define FC_STYLE            "style"             /* String */
61 #define FC_SLANT            "slant"             /* Int */
62 #define FC_WEIGHT           "weight"            /* Int */
63 #define FC_SIZE             "size"              /* Double */
64 #define FC_ASPECT           "aspect"            /* Double */
65 #define FC_PIXEL_SIZE       "pixelsize"         /* Double */
66 #define FC_SPACING          "spacing"           /* Int */
67 #define FC_FOUNDRY          "foundry"           /* String */
68 #define FC_ANTIALIAS        "antialias"         /* Bool (depends) */
69 #define FC_HINTING          "hinting"           /* Bool (true) */
70 #define FC_VERTICAL_LAYOUT  "verticallayout"    /* Bool (false) */
71 #define FC_AUTOHINT         "autohint"          /* Bool (false) */
72 #define FC_GLOBAL_ADVANCE   "globaladvance"     /* Bool (true) */
73 #define FC_FILE             "file"              /* String */
74 #define FC_INDEX            "index"             /* Int */
75 #define FC_FT_FACE          "ftface"            /* FT_Face */
76 #define FC_RASTERIZER       "rasterizer"        /* String */
77 #define FC_OUTLINE          "outline"           /* Bool */
78 #define FC_SCALABLE         "scalable"          /* Bool */
79 #define FC_SCALE            "scale"             /* double */
80 #define FC_DPI              "dpi"               /* double */
81 #define FC_RGBA             "rgba"              /* Int */
82 #define FC_MINSPACE         "minspace"          /* Bool use minimum line spacing */
83 #define FC_SOURCE           "source"            /* String (X11, freetype) */
84 #define FC_CHARSET          "charset"           /* CharSet */
85 #define FC_LANG             "lang"              /* String RFC 3066 langs */
86 #define FC_FONTVERSION      "fontversion"       /* Int from 'head' table */
87
88 #define FC_DIR_CACHE_FILE           "fonts.cache-"FC_CACHE_VERSION
89 #define FC_USER_CACHE_FILE          ".fonts.cache-"FC_CACHE_VERSION
90
91 /* Adjust outline rasterizer */
92 #define FC_CHAR_WIDTH       "charwidth" /* Int */
93 #define FC_CHAR_HEIGHT      "charheight"/* Int */
94 #define FC_MATRIX           "matrix"    /* FcMatrix */
95
96 #define FC_WEIGHT_LIGHT     0
97 #define FC_WEIGHT_MEDIUM    100
98 #define FC_WEIGHT_DEMIBOLD  180
99 #define FC_WEIGHT_BOLD      200
100 #define FC_WEIGHT_BLACK     210
101
102 #define FC_SLANT_ROMAN      0
103 #define FC_SLANT_ITALIC     100
104 #define FC_SLANT_OBLIQUE    110
105
106 #define FC_PROPORTIONAL     0
107 #define FC_MONO             100
108 #define FC_CHARCELL         110
109
110 /* sub-pixel order */
111 #define FC_RGBA_NONE        0
112 #define FC_RGBA_RGB         1
113 #define FC_RGBA_BGR         2
114 #define FC_RGBA_VRGB        3
115 #define FC_RGBA_VBGR        4
116
117 typedef enum _FcType {
118     FcTypeVoid, 
119     FcTypeInteger, 
120     FcTypeDouble, 
121     FcTypeString, 
122     FcTypeBool,
123     FcTypeMatrix,
124     FcTypeCharSet,
125     FcTypeFTFace,
126     FcTypeLangSet
127 } FcType;
128
129 typedef struct _FcMatrix {
130     double xx, xy, yx, yy;
131 } FcMatrix;
132
133 #define FcMatrixInit(m) ((m)->xx = (m)->yy = 1, \
134                          (m)->xy = (m)->yx = 0)
135
136 /*
137  * A data structure to represent the available glyphs in a font.
138  * This is represented as a sparse boolean btree.
139  */
140
141 typedef struct _FcCharSet FcCharSet;
142
143 typedef struct _FcObjectType {
144     const char  *object;
145     FcType      type;
146 } FcObjectType;
147
148 typedef struct _FcConstant {
149     const FcChar8  *name;
150     const char  *object;
151     int         value;
152 } FcConstant;
153
154 typedef enum _FcResult {
155     FcResultMatch, FcResultNoMatch, FcResultTypeMismatch, FcResultNoId
156 } FcResult;
157
158 typedef struct _FcPattern   FcPattern;
159
160 typedef struct _FcLangSet   FcLangSet;
161
162 typedef struct _FcValue {
163     FcType      type;
164     union {
165         const FcChar8   *s;
166         int             i;
167         FcBool          b;
168         double          d;
169         const FcMatrix  *m;
170         const FcCharSet *c;
171         void            *f;
172         const FcPattern *p;
173         const FcLangSet *l;
174     } u;
175 } FcValue;
176
177 typedef struct _FcFontSet {
178     int         nfont;
179     int         sfont;
180     FcPattern   **fonts;
181 } FcFontSet;
182
183 typedef struct _FcObjectSet {
184     int         nobject;
185     int         sobject;
186     const char  **objects;
187 } FcObjectSet;
188     
189 typedef enum _FcMatchKind {
190     FcMatchPattern, FcMatchFont
191 } FcMatchKind;
192
193 typedef enum _FcLangResult {
194     FcLangEqual, FcLangDifferentCountry, FcLangDifferentLang
195 } FcLangResult;
196
197 typedef enum _FcSetName {
198     FcSetSystem = 0,
199     FcSetApplication = 1
200 } FcSetName;
201
202 typedef struct _FcAtomic FcAtomic;
203
204 #if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */
205 #define _FCFUNCPROTOBEGIN extern "C" {  /* do not leave open across includes */
206 #define _FCFUNCPROTOEND }
207 #else
208 #define _FCFUNCPROTOBEGIN
209 #define _FCFUNCPROTOEND
210 #endif
211
212 typedef enum { FcEndianBig, FcEndianLittle } FcEndian;
213
214 typedef struct _FcConfig    FcConfig;
215
216 typedef struct _FcGlobalCache   FcFileCache;
217
218 typedef struct _FcBlanks    FcBlanks;
219
220 typedef struct _FcStrList   FcStrList;
221
222 typedef struct _FcStrSet    FcStrSet;
223
224 _FCFUNCPROTOBEGIN
225
226 FcBool
227 FcDirCacheValid (const FcChar8 *cache_file);
228
229 /* fcblanks.c */
230 FcBlanks *
231 FcBlanksCreate (void);
232
233 void
234 FcBlanksDestroy (FcBlanks *b);
235
236 FcBool
237 FcBlanksAdd (FcBlanks *b, FcChar32 ucs4);
238
239 FcBool
240 FcBlanksIsMember (FcBlanks *b, FcChar32 ucs4);
241
242 /* fccfg.c */
243 FcChar8 *
244 FcConfigFilename (const FcChar8 *url);
245     
246 FcConfig *
247 FcConfigCreate (void);
248
249 void
250 FcConfigDestroy (FcConfig *config);
251
252 FcBool
253 FcConfigSetCurrent (FcConfig *config);
254
255 FcConfig *
256 FcConfigGetCurrent (void);
257
258 FcBool
259 FcConfigUptoDate (FcConfig *config);
260     
261 FcBool
262 FcConfigBuildFonts (FcConfig *config);
263
264 FcStrList *
265 FcConfigGetFontDirs (FcConfig   *config);
266
267 FcStrList *
268 FcConfigGetConfigDirs (FcConfig   *config);
269
270 FcStrList *
271 FcConfigGetConfigFiles (FcConfig    *config);
272
273 FcChar8 *
274 FcConfigGetCache (FcConfig  *config);
275
276 FcBlanks *
277 FcConfigGetBlanks (FcConfig *config);
278
279 int
280 FcConfigGetRescanInverval (FcConfig *config);
281
282 FcBool
283 FcConfigSetRescanInverval (FcConfig *config, int rescanInterval);
284
285 FcFontSet *
286 FcConfigGetFonts (FcConfig      *config,
287                   FcSetName     set);
288
289 FcBool
290 FcConfigAppFontAddFile (FcConfig    *config,
291                         const FcChar8  *file);
292
293 FcBool
294 FcConfigAppFontAddDir (FcConfig     *config,
295                        const FcChar8   *dir);
296
297 void
298 FcConfigAppFontClear (FcConfig      *config);
299
300 FcBool
301 FcConfigSubstituteWithPat (FcConfig     *config,
302                            FcPattern    *p,
303                            FcPattern    *p_pat,
304                            FcMatchKind  kind);
305
306 FcBool
307 FcConfigSubstitute (FcConfig    *config,
308                     FcPattern   *p,
309                     FcMatchKind kind);
310
311 /* fccharset.c */
312 FcCharSet *
313 FcCharSetCreate (void);
314
315 void
316 FcCharSetDestroy (FcCharSet *fcs);
317
318 FcBool
319 FcCharSetAddChar (FcCharSet *fcs, FcChar32 ucs4);
320
321 FcCharSet *
322 FcCharSetCopy (FcCharSet *src);
323
324 FcBool
325 FcCharSetEqual (const FcCharSet *a, const FcCharSet *b);
326
327 FcCharSet *
328 FcCharSetIntersect (const FcCharSet *a, const FcCharSet *b);
329
330 FcCharSet *
331 FcCharSetUnion (const FcCharSet *a, const FcCharSet *b);
332
333 FcCharSet *
334 FcCharSetSubtract (const FcCharSet *a, const FcCharSet *b);
335
336 FcBool
337 FcCharSetHasChar (const FcCharSet *fcs, FcChar32 ucs4);
338
339 FcChar32
340 FcCharSetCount (const FcCharSet *a);
341
342 FcChar32
343 FcCharSetIntersectCount (const FcCharSet *a, const FcCharSet *b);
344
345 FcChar32
346 FcCharSetSubtractCount (const FcCharSet *a, const FcCharSet *b);
347
348 FcBool
349 FcCharSetIsSubset (const FcCharSet *a, const FcCharSet *b);
350
351 #define FC_CHARSET_MAP_SIZE (256/32)
352 #define FC_CHARSET_DONE ((FcChar32) -1)
353
354 FcChar32
355 FcCharSetFirstPage (const FcCharSet *a, 
356                     FcChar32        map[FC_CHARSET_MAP_SIZE],
357                     FcChar32        *next);
358
359 FcChar32
360 FcCharSetNextPage (const FcCharSet  *a, 
361                    FcChar32         map[FC_CHARSET_MAP_SIZE],
362                    FcChar32         *next);
363
364
365 /* fcdbg.c */
366 void
367 FcValuePrint (const FcValue v);
368
369 void
370 FcPatternPrint (const FcPattern *p);
371
372 void
373 FcFontSetPrint (const FcFontSet *s);
374
375 /* fcdefault.c */
376 void
377 FcDefaultSubstitute (FcPattern *pattern);
378
379 /* fcdir.c */
380 FcBool
381 FcFileScan (FcFontSet       *set,
382             FcStrSet        *dirs,
383             FcFileCache     *cache,
384             FcBlanks        *blanks,
385             const FcChar8   *file,
386             FcBool          force);
387
388 FcBool
389 FcDirScan (FcFontSet        *set,
390            FcStrSet         *dirs,
391            FcFileCache      *cache,
392            FcBlanks         *blanks,
393            const FcChar8    *dir,
394            FcBool           force);
395
396 FcBool
397 FcDirSave (FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir);
398
399 /* fcfreetype.c */
400 FcPattern *
401 FcFreeTypeQuery (const FcChar8 *file, int id, FcBlanks *blanks, int *count);
402
403 /* fcfs.c */
404
405 FcFontSet *
406 FcFontSetCreate (void);
407
408 void
409 FcFontSetDestroy (FcFontSet *s);
410
411 FcBool
412 FcFontSetAdd (FcFontSet *s, FcPattern *font);
413
414 /* fcinit.c */
415 FcConfig *
416 FcInitLoadConfig (void);
417
418 FcConfig *
419 FcInitLoadConfigAndFonts (void);
420
421 FcBool
422 FcInit (void);
423
424 int
425 FcGetVersion (void);
426
427 FcBool
428 FcInitReinitialize (void);
429
430 FcBool
431 FcInitBringUptoDate (void);
432
433 /* fclang.c */
434 FcLangSet *
435 FcLangSetCreate (void);
436
437 void
438 FcLangSetDestroy (FcLangSet *ls);
439
440 FcLangSet *
441 FcLangSetCopy (const FcLangSet *ls);
442
443 FcBool
444 FcLangSetAdd (FcLangSet *ls, const FcChar8 *lang);
445
446 FcLangResult
447 FcLangSetHasLang (const FcLangSet *ls, const FcChar8 *lang);
448
449 FcLangResult
450 FcLangSetCompare (const FcLangSet *lsa, const FcLangSet *lsb);
451
452 FcBool
453 FcLangSetEqual (const FcLangSet *lsa, const FcLangSet *lsb);
454
455 FcChar32
456 FcLangSetHash (const FcLangSet *ls);
457
458 /* fclist.c */
459 FcObjectSet *
460 FcObjectSetCreate (void);
461
462 FcBool
463 FcObjectSetAdd (FcObjectSet *os, const char *object);
464
465 void
466 FcObjectSetDestroy (FcObjectSet *os);
467
468 FcObjectSet *
469 FcObjectSetVaBuild (const char *first, va_list va);
470
471 FcObjectSet *
472 FcObjectSetBuild (const char *first, ...);
473
474 FcFontSet *
475 FcFontSetList (FcConfig     *config,
476                FcFontSet    **sets,
477                int          nsets,
478                FcPattern    *p,
479                FcObjectSet  *os);
480
481 FcFontSet *
482 FcFontList (FcConfig    *config,
483             FcPattern   *p,
484             FcObjectSet *os);
485
486 /* fcatomic.c */
487
488 FcAtomic *
489 FcAtomicCreate (const FcChar8   *file);
490
491 FcBool
492 FcAtomicLock (FcAtomic *atomic);
493
494 FcChar8 *
495 FcAtomicNewFile (FcAtomic *atomic);
496
497 FcChar8 *
498 FcAtomicOrigFile (FcAtomic *atomic);
499
500 FcBool
501 FcAtomicReplaceOrig (FcAtomic *atomic);
502
503 void
504 FcAtomicDeleteNew (FcAtomic *atomic);
505
506 void
507 FcAtomicUnlock (FcAtomic *atomic);
508
509 void
510 FcAtomicDestroy (FcAtomic *atomic);
511
512 /* fcmatch.c */
513 FcPattern *
514 FcFontSetMatch (FcConfig    *config,
515                 FcFontSet   **sets,
516                 int         nsets,
517                 FcPattern   *p,
518                 FcResult    *result);
519
520 FcPattern *
521 FcFontMatch (FcConfig   *config,
522              FcPattern  *p, 
523              FcResult   *result);
524
525 FcPattern *
526 FcFontRenderPrepare (FcConfig       *config,
527                      FcPattern      *pat,
528                      FcPattern      *font);
529
530 FcFontSet *
531 FcFontSetSort (FcConfig     *config,
532                FcFontSet    **sets,
533                int          nsets,
534                FcPattern    *p,
535                FcBool       trim,
536                FcCharSet    **csp,
537                FcResult     *result);
538
539 FcFontSet *
540 FcFontSort (FcConfig     *config,
541             FcPattern    *p,
542             FcBool       trim,
543             FcCharSet    **csp,
544             FcResult     *result);
545
546 void
547 FcFontSetSortDestroy (FcFontSet *fs);
548
549 /* fcmatrix.c */
550 FcMatrix *
551 FcMatrixCopy (const FcMatrix *mat);
552
553 FcBool
554 FcMatrixEqual (const FcMatrix *mat1, const FcMatrix *mat2);
555
556 void
557 FcMatrixMultiply (FcMatrix *result, const FcMatrix *a, const FcMatrix *b);
558
559 void
560 FcMatrixRotate (FcMatrix *m, double c, double s);
561
562 void
563 FcMatrixScale (FcMatrix *m, double sx, double sy);
564
565 void
566 FcMatrixShear (FcMatrix *m, double sh, double sv);
567
568 /* fcname.c */
569
570 FcBool
571 FcNameRegisterObjectTypes (const FcObjectType *types, int ntype);
572
573 FcBool
574 FcNameUnregisterObjectTypes (const FcObjectType *types, int ntype);
575     
576 const FcObjectType *
577 FcNameGetObjectType (const char *object);
578
579 FcBool
580 FcNameRegisterConstants (const FcConstant *consts, int nconsts);
581
582 FcBool
583 FcNameUnregisterConstants (const FcConstant *consts, int nconsts);
584     
585 const FcConstant *
586 FcNameGetConstant (FcChar8 *string);
587
588 FcBool
589 FcNameConstant (FcChar8 *string, int *result);
590
591 FcPattern *
592 FcNameParse (const FcChar8 *name);
593
594 FcChar8 *
595 FcNameUnparse (FcPattern *pat);
596
597 /* fcpat.c */
598 FcPattern *
599 FcPatternCreate (void);
600
601 FcPattern *
602 FcPatternDuplicate (FcPattern *p);
603
604 void
605 FcPatternReference (FcPattern *p);
606
607 void
608 FcValueDestroy (FcValue v);
609
610 FcBool
611 FcValueEqual (FcValue va, FcValue vb);
612
613 FcValue
614 FcValueSave (FcValue v);
615
616 void
617 FcPatternDestroy (FcPattern *p);
618
619 FcBool
620 FcPatternEqual (const FcPattern *pa, const FcPattern *pb);
621
622 FcBool
623 FcPatternEqualSubset (const FcPattern *pa, const FcPattern *pb, const FcObjectSet *os);
624
625 FcChar32
626 FcPatternHash (const FcPattern *p);
627
628 FcBool
629 FcPatternAdd (FcPattern *p, const char *object, FcValue value, FcBool append);
630     
631 FcBool
632 FcPatternAddWeak (FcPattern *p, const char *object, FcValue value, FcBool append);
633     
634 FcResult
635 FcPatternGet (FcPattern *p, const char *object, int id, FcValue *v);
636     
637 FcBool
638 FcPatternDel (FcPattern *p, const char *object);
639
640 FcBool
641 FcPatternAddInteger (FcPattern *p, const char *object, int i);
642
643 FcBool
644 FcPatternAddDouble (FcPattern *p, const char *object, double d);
645
646 FcBool
647 FcPatternAddString (FcPattern *p, const char *object, const FcChar8 *s);
648
649 FcBool
650 FcPatternAddMatrix (FcPattern *p, const char *object, const FcMatrix *s);
651
652 FcBool
653 FcPatternAddCharSet (FcPattern *p, const char *object, const FcCharSet *c);
654
655 FcBool
656 FcPatternAddBool (FcPattern *p, const char *object, FcBool b);
657
658 FcBool
659 FcPatternAddLangSet (FcPattern *p, const char *object, const FcLangSet *ls);
660
661 FcResult
662 FcPatternGetInteger (FcPattern *p, const char *object, int n, int *i);
663
664 FcResult
665 FcPatternGetDouble (FcPattern *p, const char *object, int n, double *d);
666
667 FcResult
668 FcPatternGetString (FcPattern *p, const char *object, int n, FcChar8 ** s);
669
670 FcResult
671 FcPatternGetMatrix (FcPattern *p, const char *object, int n, FcMatrix **s);
672
673 FcResult
674 FcPatternGetCharSet (FcPattern *p, const char *object, int n, FcCharSet **c);
675
676 FcResult
677 FcPatternGetBool (FcPattern *p, const char *object, int n, FcBool *b);
678
679 FcResult
680 FcPatternGetLangSet (FcPattern *p, const char *object, int n, FcLangSet **ls);
681
682 FcPattern *
683 FcPatternVaBuild (FcPattern *orig, va_list va);
684     
685 FcPattern *
686 FcPatternBuild (FcPattern *orig, ...);
687
688 /* fcstr.c */
689
690 FcChar8 *
691 FcStrCopy (const FcChar8 *s);
692
693 FcChar8 *
694 FcStrCopyFilename (const FcChar8 *s);
695     
696 #define FcToLower(c)    (('A' <= (c) && (c) <= 'Z') ? (c) - 'A' + 'a' : (c))
697
698 int
699 FcStrCmpIgnoreCase (const FcChar8 *s1, const FcChar8 *s2);
700
701 int
702 FcStrCmp (const FcChar8 *s1, const FcChar8 *s2);
703
704 int
705 FcUtf8ToUcs4 (const FcChar8 *src_orig,
706               FcChar32      *dst,
707               int           len);
708
709 FcBool
710 FcUtf8Len (const FcChar8    *string,
711            int              len,
712            int              *nchar,
713            int              *wchar);
714
715 #define FC_UTF8_MAX_LEN 6
716
717 int
718 FcUcs4ToUtf8 (FcChar32  ucs4,
719               FcChar8   dest[FC_UTF8_MAX_LEN]);
720
721 int
722 FcUtf16ToUcs4 (const FcChar8    *src_orig,
723                FcEndian         endian,
724                FcChar32         *dst,
725                int              len);       /* in bytes */
726
727 FcBool
728 FcUtf16Len (const FcChar8   *string,
729             FcEndian        endian,
730             int             len,            /* in bytes */
731             int             *nchar,
732             int             *wchar);
733
734 FcChar8 *
735 FcStrDirname (const FcChar8 *file);
736
737 FcChar8 *
738 FcStrBasename (const FcChar8 *file);
739
740 FcStrSet *
741 FcStrSetCreate (void);
742
743 FcBool
744 FcStrSetMember (FcStrSet *set, const FcChar8 *s);
745
746 FcBool
747 FcStrSetEqual (FcStrSet *sa, FcStrSet *sb);
748
749 FcBool
750 FcStrSetAdd (FcStrSet *set, const FcChar8 *s);
751
752 FcBool
753 FcStrSetAddFilename (FcStrSet *set, const FcChar8 *s);
754
755 FcBool
756 FcStrSetDel (FcStrSet *set, const FcChar8 *s);
757
758 void
759 FcStrSetDestroy (FcStrSet *set);
760
761 FcStrList *
762 FcStrListCreate (FcStrSet *set);
763
764 FcChar8 *
765 FcStrListNext (FcStrList *list);
766
767 void
768 FcStrListDone (FcStrList *list);
769
770 /* fcxml.c */
771 FcBool
772 FcConfigParseAndLoad (FcConfig *config, const FcChar8 *file, FcBool complain);
773
774 _FCFUNCPROTOEND
775
776 #endif /* _FONTCONFIG_H_ */