2 * $RCSId: xc/lib/fontconfig/src/fcint.h,v 1.27 2002/08/31 22:17:32 keithp Exp $
4 * Copyright © 2000 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 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.
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.
34 #ifdef HAVE_INTTYPES_H
36 #elif defined(HAVE_STDINT_H)
39 #error missing C99 integer data types
45 #include <sys/types.h>
48 #include <fontconfig/fontconfig.h>
49 #include <fontconfig/fcprivate.h>
50 #include <fontconfig/fcfreetype.h>
52 #ifndef FC_CONFIG_PATH
53 #define FC_CONFIG_PATH "fonts.conf"
56 #define FC_FONT_FILE_INVALID ((FcChar8 *) ".")
57 #define FC_FONT_FILE_DIR ((FcChar8 *) ".dir")
60 #define FC_SEARCH_PATH_SEPARATOR ';'
62 #define FC_SEARCH_PATH_SEPARATOR ':'
65 #define FC_DBG_MATCH 1
66 #define FC_DBG_MATCHV 2
68 #define FC_DBG_FONTSET 8
69 #define FC_DBG_CACHE 16
70 #define FC_DBG_CACHEV 32
71 #define FC_DBG_PARSE 64
72 #define FC_DBG_SCAN 128
73 #define FC_DBG_SCANV 256
74 #define FC_DBG_MEMORY 512
75 #define FC_DBG_CONFIG 1024
76 #define FC_DBG_LANGSET 2048
77 #define FC_DBG_OBJTYPES 4096
79 #define FC_MEM_CHARSET 0
80 #define FC_MEM_CHARLEAF 1
81 #define FC_MEM_FONTSET 2
82 #define FC_MEM_FONTPTR 3
83 #define FC_MEM_OBJECTSET 4
84 #define FC_MEM_OBJECTPTR 5
85 #define FC_MEM_MATRIX 6
86 #define FC_MEM_PATTERN 7
87 #define FC_MEM_PATELT 8
88 #define FC_MEM_VALLIST 9
89 #define FC_MEM_SUBSTATE 10
90 #define FC_MEM_STRING 11
91 #define FC_MEM_LISTBUCK 12
92 #define FC_MEM_STRSET 13
93 #define FC_MEM_STRLIST 14
94 #define FC_MEM_CONFIG 15
95 #define FC_MEM_LANGSET 16
96 #define FC_MEM_ATOMIC 17
97 #define FC_MEM_BLANKS 18
98 #define FC_MEM_CACHE 19
99 #define FC_MEM_STRBUF 20
100 #define FC_MEM_SUBST 21
101 #define FC_MEM_OBJECTTYPE 22
102 #define FC_MEM_CONSTANT 23
103 #define FC_MEM_TEST 24
104 #define FC_MEM_EXPR 25
105 #define FC_MEM_VSTACK 26
106 #define FC_MEM_ATTR 27
107 #define FC_MEM_PSTACK 28
108 #define FC_MEM_STATICSTR 29
110 #define FC_MEM_NUM 30
112 #define FC_BANK_DYNAMIC 0
113 #define FC_BANK_FIRST 1
114 #define FC_BANK_LANGS 0xfcfcfcfc
116 typedef enum _FcValueBinding {
117 FcValueBindingWeak, FcValueBindingStrong, FcValueBindingSame
121 * Serialized data structures use only offsets instead of pointers
122 * A low bit of 1 indicates an offset.
125 /* Is the provided pointer actually an offset? */
126 #define FcIsEncodedOffset(p) ((((intptr_t) (p)) & 1) != 0)
128 /* Encode offset in a pointer of type t */
129 #define FcOffsetEncode(o,t) ((t *) ((o) | 1))
131 /* Decode a pointer into an offset */
132 #define FcOffsetDecode(p) (((intptr_t) (p)) & ~1)
134 /* Compute pointer offset */
135 #define FcPtrToOffset(b,p) ((intptr_t) (p) - (intptr_t) (b))
137 /* Given base address, offset and type, return a pointer */
138 #define FcOffsetToPtr(b,o,t) ((t *) ((intptr_t) (b) + (o)))
140 /* Given base address, encoded offset and type, return a pointer */
141 #define FcEncodedOffsetToPtr(b,p,t) FcOffsetToPtr(b,FcOffsetDecode(p),t)
143 /* Given base address, pointer and type, return an encoded offset */
144 #define FcPtrToEncodedOffset(b,p,t) FcOffsetEncode(FcPtrToOffset(b,p),t)
146 /* Given a structure, offset member and type, return pointer */
147 #define FcOffsetMember(s,m,t) FcOffsetToPtr(s,(s)->m,t)
149 /* Given a structure, encoded offset member and type, return pointer to member */
150 #define FcEncodedOffsetMember(s,m,t) FcOffsetToPtr(s,FcOffsetDecode((s)->m), t)
152 /* Given a structure, member and type, convert the member to a pointer */
153 #define FcPointerMember(s,m,t) (FcIsEncodedOffset((s)->m) ? \
154 FcEncodedOffsetMember (s,m,t) : \
158 * Serialized values may hold strings, charsets and langsets as pointers,
159 * unfortunately FcValue is an exposed type so we can't just always use
162 #define FcValueString(v) FcPointerMember(v,u.s,FcChar8)
163 #define FcValueCharSet(v) FcPointerMember(v,u.c,const FcCharSet)
164 #define FcValueLangSet(v) FcPointerMember(v,u.l,const FcLangSet)
166 typedef struct _FcValueList *FcValueListPtr;
168 typedef struct _FcValueList {
169 struct _FcValueList *next;
171 FcValueBinding binding;
174 #define FcValueListNext(vl) FcPointerMember(vl,next,FcValueList)
176 typedef int FcObject;
178 typedef struct _FcPatternElt *FcPatternEltPtr;
181 * Pattern elts are stuck in a structure connected to the pattern,
182 * so they get moved around when the pattern is resized. Hence, the
183 * values field must be a pointer/offset instead of just an offset
185 typedef struct _FcPatternElt {
190 #define FcPatternEltValues(pe) FcPointerMember(pe,values,FcValueList)
195 intptr_t elts_offset;
199 #define FcPatternElts(p) FcOffsetMember(p,elts_offset,FcPatternElt)
201 #define FcFontSetFonts(fs) FcPointerMember(fs,fonts,FcPattern *)
203 #define FcFontSetFont(fs,i) (FcIsEncodedOffset((fs)->fonts) ? \
204 FcEncodedOffsetToPtr(FcFontSetFonts(fs), \
205 FcFontSetFonts(fs)[i], \
210 FcOpInteger, FcOpDouble, FcOpString, FcOpMatrix, FcOpBool, FcOpCharSet,
212 FcOpField, FcOpConst,
213 FcOpAssign, FcOpAssignReplace,
214 FcOpPrependFirst, FcOpPrepend, FcOpAppend, FcOpAppendLast,
216 FcOpOr, FcOpAnd, FcOpEqual, FcOpNotEqual,
217 FcOpContains, FcOpListing, FcOpNotContains,
218 FcOpLess, FcOpLessEqual, FcOpMore, FcOpMoreEqual,
219 FcOpPlus, FcOpMinus, FcOpTimes, FcOpDivide,
220 FcOpNot, FcOpComma, FcOpFloor, FcOpCeil, FcOpRound, FcOpTrunc,
224 typedef struct _FcExpr {
236 struct _FcExpr *left, *right;
241 typedef enum _FcQual {
242 FcQualAny, FcQualAll, FcQualFirst, FcQualNotFirst
245 #define FcMatchDefault ((FcMatchKind) -1)
247 typedef struct _FcTest {
248 struct _FcTest *next;
256 typedef struct _FcEdit {
257 struct _FcEdit *next;
261 FcValueBinding binding;
264 typedef struct _FcSubst {
265 struct _FcSubst *next;
270 typedef struct _FcCharLeaf {
271 FcChar32 map[256/32];
274 #define FC_REF_CONSTANT -1
277 int ref; /* reference count */
278 int num; /* size of leaves and numbers arrays */
279 intptr_t leaves_offset;
280 intptr_t numbers_offset;
283 #define FcCharSetLeaves(c) FcOffsetMember(c,leaves_offset,intptr_t)
284 #define FcCharSetLeaf(c,i) (FcOffsetToPtr(FcCharSetLeaves(c), \
285 FcCharSetLeaves(c)[i], \
287 #define FcCharSetNumbers(c) FcOffsetMember(c,numbers_offset,FcChar16)
290 int ref; /* reference count */
301 typedef struct _FcStrBuf {
309 typedef struct _FcCache {
310 int magic; /* FC_CACHE_MAGIC_MMAP or FC_CACHE_ALLOC */
311 int version; /* FC_CACHE_CONTENT_VERSION */
312 intptr_t size; /* size of file */
313 intptr_t dir; /* offset to dir name */
314 intptr_t dirs; /* offset to subdirs */
315 int dirs_count; /* number of subdir strings */
316 intptr_t set; /* offset to font set */
319 #define FcCacheDir(c) FcOffsetMember(c,dir,FcChar8)
320 #define FcCacheDirs(c) FcOffsetMember(c,dirs,intptr_t)
321 #define FcCacheSet(c) FcOffsetMember(c,set,FcFontSet)
322 #define FcCacheSubdir(c,i) FcOffsetToPtr (FcCacheDirs(cache),\
323 FcCacheDirs(cache)[i], \
327 * Used while constructing a directory cache object
330 #define FC_SERIALIZE_HASH_SIZE 8191
332 typedef struct _FcSerializeBucket {
333 struct _FcSerializeBucket *next;
338 typedef struct _FcCharSetFreezer FcCharSetFreezer;
340 typedef struct _FcSerialize {
342 FcCharSetFreezer *cs_freezer;
344 FcSerializeBucket *buckets[FC_SERIALIZE_HASH_SIZE];
348 * To map adobe glyph names to unicode values, a precomputed hash
352 typedef struct _FcGlyphName {
353 FcChar32 ucs; /* unicode value */
354 FcChar8 name[1]; /* name extends beyond struct */
358 * To perform case-insensitive string comparisons, a table
359 * is used which holds three different kinds of folding data.
361 * The first is a range of upper case values mapping to a range
362 * of their lower case equivalents. Within each range, the offset
363 * between upper and lower case is constant.
365 * The second is a range of upper case values which are interleaved
366 * with their lower case equivalents.
368 * The third is a set of raw unicode values mapping to a list
369 * of unicode values for comparison purposes. This allows conversion
370 * of ß to "ss" so that SS, ss and ß all match. A separate array
371 * holds the list of unicode values for each entry.
373 * These are packed into a single table. Using a binary search,
374 * the appropriate entry can be located.
377 #define FC_CASE_FOLD_RANGE 0
378 #define FC_CASE_FOLD_EVEN_ODD 1
379 #define FC_CASE_FOLD_FULL 2
381 typedef struct _FcCaseFold {
385 short offset; /* lower - upper for RANGE, table id for FULL */
388 #define FC_MAX_FILE_LEN 4096
390 /* XXX remove these when we're ready */
392 #define fc_value_string(v) FcValueString(v)
393 #define fc_value_charset(v) FcValueCharSet(v)
394 #define fc_value_langset(v) FcValueLangSet(v)
395 #define fc_storage_type(v) ((v)->type)
397 #define fc_alignof(type) offsetof (struct { char c; type member; }, member)
399 #define FC_CACHE_MAGIC_MMAP 0xFC02FC04
400 #define FC_CACHE_MAGIC_ALLOC 0xFC02FC05
401 #define FC_CACHE_CONTENT_VERSION 1
404 FcChar8 *file; /* original file name */
405 FcChar8 *new; /* temp file name -- write data here */
406 FcChar8 *lck; /* lockfile name (used for locking) */
407 FcChar8 *tmp; /* tmpfile name (used for locking) */
416 typedef struct _FcCacheList {
417 struct _FcCacheList *next;
423 * File names loaded from the configuration -- saved here as the
424 * cache file must be consulted before the directories are scanned,
425 * and those directives may occur in any order
427 FcStrSet *configDirs; /* directories to scan for fonts */
429 * Set of allowed blank chars -- used to
430 * trim fonts of bogus glyphs
434 * List of directories containing fonts,
435 * built by recursively scanning the set
436 * of configured directories
440 * List of directories containing cache files.
444 * Names of all of the configuration files used
445 * to create this configuration
447 FcStrSet *configFiles; /* config files loaded */
449 * Substitution instructions for patterns and fonts;
450 * maxObjects is used to allocate appropriate intermediate storage
451 * while performing a whole set of substitutions
453 FcSubst *substPattern; /* substitutions for patterns */
454 FcSubst *substFont; /* substitutions for fonts */
455 int maxObjects; /* maximum number of tests in all substs */
457 * List of patterns used to control font file selection
459 FcStrSet *acceptGlobs;
460 FcStrSet *rejectGlobs;
461 FcFontSet *acceptPatterns;
462 FcFontSet *rejectPatterns;
464 * The set of fonts loaded from the listed directories; the
465 * order within the set does not determine the font selection,
466 * except in the case of identical matches in which case earlier fonts
467 * match preferrentially
469 FcFontSet *fonts[FcSetApplication + 1];
471 * Font cache information is mapped from cache files
472 * the configuration is destroyed, the files need to be unmapped
476 * Fontconfig can periodically rescan the system configuration
477 * and font directories. This rescanning occurs when font
478 * listing requests are made, but no more often than rescanInterval
481 time_t rescanTime; /* last time information was scanned */
482 int rescanInterval; /* interval between scans */
485 extern FcConfig *_fcConfig;
487 typedef struct _FcFileTime {
492 typedef struct _FcCharMap FcCharMap;
494 /* watch out; assumes that v is void * -PL */
495 #define ALIGN(v,type) ((void *)(((uintptr_t)(v) + fc_alignof(type) - 1) & ~(fc_alignof(type) - 1)))
502 FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config);
505 FcDirCacheUnload (FcCache *cache);
508 FcDirCacheScan (const FcChar8 *dir, FcConfig *config);
511 FcDirCacheLoad (const FcChar8 *dir, FcConfig *config, FcChar8 **cache_file);
514 FcDirCacheLoadFile (const FcChar8 *cache_file, struct stat *file_stat);
517 FcDirCacheValid (const FcChar8 *dir);
520 FcDirCacheBuild (FcFontSet *set, const FcChar8 *dir, FcStrSet *dirs);
523 FcDirCacheWrite (FcCache *cache, FcConfig *config);
528 FcConfigAddConfigDir (FcConfig *config,
532 FcConfigAddFontDir (FcConfig *config,
536 FcConfigAddDir (FcConfig *config,
540 FcConfigAddCacheDir (FcConfig *config,
544 FcConfigGetCacheDirs (FcConfig *config);
547 FcConfigAddConfigFile (FcConfig *config,
551 FcConfigAddBlank (FcConfig *config,
555 FcConfigAddEdit (FcConfig *config,
561 FcConfigSetFonts (FcConfig *config,
566 FcConfigCompareValue (const FcValue *m,
571 FcConfigGlobAdd (FcConfig *config,
576 FcConfigAcceptFilename (FcConfig *config,
577 const FcChar8 *filename);
580 FcConfigPatternsAdd (FcConfig *config,
585 FcConfigAcceptFont (FcConfig *config,
586 const FcPattern *font);
589 FcConfigModifiedTime (FcConfig *config);
592 FcConfigAddCache (FcConfig *config, FcCache *cache);
596 FcAlignSize (intptr_t size);
599 FcSerializeCreate (void);
602 FcSerializeDestroy (FcSerialize *serialize);
605 FcSerializeAlloc (FcSerialize *serialize, const void *object, int size);
608 FcSerializeReserve (FcSerialize *serialize, int size);
611 FcSerializeOffset (FcSerialize *serialize, const void *object);
614 FcSerializePtr (FcSerialize *serialize, const void *object);
617 FcLangSetSerializeAlloc (FcSerialize *serialize, const FcLangSet *l);
620 FcLangSetSerialize(FcSerialize *serialize, const FcLangSet *l);
624 FcLangCharSetPopulate (void);
627 FcCharSetFreezerCreate (void);
630 FcCharSetFreeze (FcCharSetFreezer *freezer, const FcCharSet *fcs);
633 FcCharSetFreezerDestroy (FcCharSetFreezer *freezer);
636 FcNameUnparseCharSet (FcStrBuf *buf, const FcCharSet *c);
639 FcNameParseCharSet (FcChar8 *string);
642 FcCharSetFindLeafCreate (FcCharSet *fcs, FcChar32 ucs4);
645 FcCharSetSerializeAlloc(FcSerialize *serialize, const FcCharSet *cs);
648 FcCharSetSerialize(FcSerialize *serialize, const FcCharSet *cs);
651 FcCharSetGetNumbers(const FcCharSet *c);
655 FcValueListPrint (const FcValueListPtr l);
658 FcLangSetPrint (const FcLangSet *ls);
664 FcTestPrint (const FcTest *test);
667 FcExprPrint (const FcExpr *expr);
670 FcEditPrint (const FcEdit *edit);
673 FcSubstPrint (const FcSubst *subst);
676 FcCharSetPrint (const FcCharSet *c);
678 extern int FcDebugVal;
681 FcDebug (void) { return FcDebugVal; }
688 FcGetDefaultLang (void);
693 FcFileIsDir (const FcChar8 *file);
696 FcFileScanConfig (FcFontSet *set,
703 FcDirScanConfig (FcFontSet *set,
711 FcDirCacheRead (const FcChar8 *dir, FcBool force, FcConfig *config);
719 FcFreeTypeIsExclusiveLang (const FcChar8 *lang);
722 FcFreeTypeHasLang (FcPattern *pattern, const FcChar8 *lang);
725 FcFreeTypeUcs4ToPrivate (FcChar32 ucs4, const FcCharMap *map);
728 FcFreeTypePrivateToUcs4 (FcChar32 private, const FcCharMap *map);
731 FcFreeTypeGetPrivateMap (FT_Encoding encoding);
736 FcFontSetSerializeAlloc (FcSerialize *serialize, const FcFontSet *s);
739 FcFontSetSerialize (FcSerialize *serialize, const FcFontSet * s);
743 FcConfigparse (void);
749 FcConfigerror (char *fmt, ...);
752 FcConfigSaveField (const char *field);
755 FcTestDestroy (FcTest *test);
758 FcExprCreateInteger (int i);
761 FcExprCreateDouble (double d);
764 FcExprCreateString (const FcChar8 *s);
767 FcExprCreateMatrix (const FcMatrix *m);
770 FcExprCreateBool (FcBool b);
773 FcExprCreateNil (void);
776 FcExprCreateField (const char *field);
779 FcExprCreateConst (const FcChar8 *constant);
782 FcExprCreateOp (FcExpr *left, FcOp op, FcExpr *right);
785 FcExprDestroy (FcExpr *e);
788 FcEditDestroy (FcEdit *e);
796 FcMemAlloc (int kind, int size);
799 FcMemFree (int kind, int size);
803 FcFreeTypeLangSet (const FcCharSet *charset,
804 const FcChar8 *exclusiveLang);
807 FcLangCompare (const FcChar8 *s1, const FcChar8 *s2);
810 FcCharSetForLang (const FcChar8 *lang);
813 FcLangSetPromote (const FcChar8 *lang);
816 FcNameParseLangSet (const FcChar8 *string);
819 FcNameUnparseLangSet (FcStrBuf *buf, const FcLangSet *ls);
822 FcNameUnparseEscaped (FcPattern *pat, FcBool escape);
827 FcListPatternMatchAny (const FcPattern *p,
828 const FcPattern *font);
835 * NOTE -- this ordering is part of the cache file format.
836 * It must also match the ordering in fcname.c
839 #define FC_FAMILY_OBJECT 1
840 #define FC_FAMILYLANG_OBJECT 2
841 #define FC_STYLE_OBJECT 3
842 #define FC_STYLELANG_OBJECT 4
843 #define FC_FULLNAME_OBJECT 5
844 #define FC_FULLNAMELANG_OBJECT 6
845 #define FC_SLANT_OBJECT 7
846 #define FC_WEIGHT_OBJECT 8
847 #define FC_WIDTH_OBJECT 9
848 #define FC_SIZE_OBJECT 10
849 #define FC_ASPECT_OBJECT 11
850 #define FC_PIXEL_SIZE_OBJECT 12
851 #define FC_SPACING_OBJECT 13
852 #define FC_FOUNDRY_OBJECT 14
853 #define FC_ANTIALIAS_OBJECT 15
854 #define FC_HINT_STYLE_OBJECT 16
855 #define FC_HINTING_OBJECT 17
856 #define FC_VERTICAL_LAYOUT_OBJECT 18
857 #define FC_AUTOHINT_OBJECT 19
858 #define FC_GLOBAL_ADVANCE_OBJECT 20
859 #define FC_FILE_OBJECT 21
860 #define FC_INDEX_OBJECT 22
861 #define FC_RASTERIZER_OBJECT 23
862 #define FC_OUTLINE_OBJECT 24
863 #define FC_SCALABLE_OBJECT 25
864 #define FC_DPI_OBJECT 26
865 #define FC_RGBA_OBJECT 27
866 #define FC_SCALE_OBJECT 28
867 #define FC_MINSPACE_OBJECT 29
868 #define FC_CHAR_WIDTH_OBJECT 30
869 #define FC_CHAR_HEIGHT_OBJECT 31
870 #define FC_MATRIX_OBJECT 32
871 #define FC_CHARSET_OBJECT 33
872 #define FC_LANG_OBJECT 34
873 #define FC_FONTVERSION_OBJECT 35
874 #define FC_CAPABILITY_OBJECT 36
875 #define FC_FONTFORMAT_OBJECT 37
876 #define FC_EMBOLDEN_OBJECT 38
877 #define FC_EMBEDDED_BITMAP_OBJECT 39
880 FcNameBool (const FcChar8 *v, FcBool *result);
883 FcObjectValidType (FcObject object, FcType type);
886 FcObjectFromName (const char * name);
889 FcObjectName (FcObject object);
897 #define FcObjectCompare(a, b) ((int) a - (int) b)
902 FcValueCanonicalize (const FcValue *v);
905 FcValueListDestroy (FcValueListPtr l);
908 FcPatternObjectFindElt (const FcPattern *p, FcObject object);
911 FcPatternObjectInsertElt (FcPattern *p, FcObject object);
914 FcPatternObjectAddWithBinding (FcPattern *p,
917 FcValueBinding binding,
921 FcPatternObjectAdd (FcPattern *p, FcObject object, FcValue value, FcBool append);
924 FcPatternObjectAddWeak (FcPattern *p, FcObject object, FcValue value, FcBool append);
927 FcPatternObjectGet (const FcPattern *p, FcObject object, int id, FcValue *v);
930 FcPatternObjectDel (FcPattern *p, FcObject object);
933 FcPatternObjectRemove (FcPattern *p, FcObject object, int id);
936 FcPatternObjectAddInteger (FcPattern *p, FcObject object, int i);
939 FcPatternObjectAddDouble (FcPattern *p, FcObject object, double d);
942 FcPatternObjectAddString (FcPattern *p, FcObject object, const FcChar8 *s);
945 FcPatternObjectAddMatrix (FcPattern *p, FcObject object, const FcMatrix *s);
948 FcPatternObjectAddCharSet (FcPattern *p, FcObject object, const FcCharSet *c);
951 FcPatternObjectAddBool (FcPattern *p, FcObject object, FcBool b);
954 FcPatternObjectAddLangSet (FcPattern *p, FcObject object, const FcLangSet *ls);
957 FcPatternObjectGetInteger (const FcPattern *p, FcObject object, int n, int *i);
960 FcPatternObjectGetDouble (const FcPattern *p, FcObject object, int n, double *d);
963 FcPatternObjectGetString (const FcPattern *p, FcObject object, int n, FcChar8 ** s);
966 FcPatternObjectGetMatrix (const FcPattern *p, FcObject object, int n, FcMatrix **s);
969 FcPatternObjectGetCharSet (const FcPattern *p, FcObject object, int n, FcCharSet **c);
972 FcPatternObjectGetBool (const FcPattern *p, FcObject object, int n, FcBool *b);
975 FcPatternObjectGetLangSet (const FcPattern *p, FcObject object, int n, FcLangSet **ls);
978 FcPatternFini (void);
981 FcPatternAppend (FcPattern *p, FcPattern *s);
984 FcStrStaticName (const FcChar8 *name);
987 FcStringHash (const FcChar8 *s);
990 FcPatternSerializeAlloc (FcSerialize *serialize, const FcPattern *pat);
993 FcPatternSerialize (FcSerialize *serialize, const FcPattern *pat);
996 FcValueListSerializeAlloc (FcSerialize *serialize, const FcValueList *pat);
999 FcValueListSerialize (FcSerialize *serialize, const FcValueList *pat);
1005 extern const FcMatrix FcIdentityMatrix;
1008 FcMatrixFree (FcMatrix *mat);
1012 FcStrSetSort (FcStrSet * set);
1015 FcStrPlus (const FcChar8 *s1, const FcChar8 *s2);
1018 FcStrFree (FcChar8 *s);
1021 FcStrBufInit (FcStrBuf *buf, FcChar8 *init, int size);
1024 FcStrBufDestroy (FcStrBuf *buf);
1027 FcStrBufDone (FcStrBuf *buf);
1030 FcStrBufChar (FcStrBuf *buf, FcChar8 c);
1033 FcStrBufString (FcStrBuf *buf, const FcChar8 *s);
1036 FcStrBufData (FcStrBuf *buf, const FcChar8 *s, int len);
1039 FcStrCmpIgnoreBlanksAndCase (const FcChar8 *s1, const FcChar8 *s2);
1042 FcStrContainsIgnoreBlanksAndCase (const FcChar8 *s1, const FcChar8 *s2);
1045 FcStrContainsIgnoreCase (const FcChar8 *s1, const FcChar8 *s2);
1048 FcStrUsesHome (const FcChar8 *s);
1051 FcStrLastSlash (const FcChar8 *path);
1054 FcStrHashIgnoreCase (const FcChar8 *s);
1057 FcStrCanonFilename (const FcChar8 *s);
1060 FcStrSerializeAlloc (FcSerialize *serialize, const FcChar8 *str);
1063 FcStrSerialize (FcSerialize *serialize, const FcChar8 *str);
1065 #endif /* _FC_INT_H_ */