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")
58 #define FC_GLOBAL_MAGIC_COOKIE "GLOBAL"
61 #define FC_SEARCH_PATH_SEPARATOR ';'
63 #define FC_SEARCH_PATH_SEPARATOR ':'
66 #define FC_DBG_MATCH 1
67 #define FC_DBG_MATCHV 2
69 #define FC_DBG_FONTSET 8
70 #define FC_DBG_CACHE 16
71 #define FC_DBG_CACHEV 32
72 #define FC_DBG_PARSE 64
73 #define FC_DBG_SCAN 128
74 #define FC_DBG_SCANV 256
75 #define FC_DBG_MEMORY 512
76 #define FC_DBG_CONFIG 1024
77 #define FC_DBG_LANGSET 2048
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 FcOffsetToPtr(FcFontSetFonts(fs), \
205 FcFontSetFonts(fs)[i]) : \
209 FcOpInteger
, FcOpDouble
, FcOpString
, FcOpMatrix
, FcOpBool
, FcOpCharSet
,
211 FcOpField
, FcOpConst
,
212 FcOpAssign
, FcOpAssignReplace
,
213 FcOpPrependFirst
, FcOpPrepend
, FcOpAppend
, FcOpAppendLast
,
215 FcOpOr
, FcOpAnd
, FcOpEqual
, FcOpNotEqual
,
216 FcOpContains
, FcOpListing
, FcOpNotContains
,
217 FcOpLess
, FcOpLessEqual
, FcOpMore
, FcOpMoreEqual
,
218 FcOpPlus
, FcOpMinus
, FcOpTimes
, FcOpDivide
,
219 FcOpNot
, FcOpComma
, FcOpFloor
, FcOpCeil
, FcOpRound
, FcOpTrunc
,
223 typedef struct _FcExpr
{
235 struct _FcExpr
*left
, *right
;
240 typedef enum _FcQual
{
241 FcQualAny
, FcQualAll
, FcQualFirst
, FcQualNotFirst
244 #define FcMatchDefault ((FcMatchKind) -1)
246 typedef struct _FcTest
{
247 struct _FcTest
*next
;
255 typedef struct _FcEdit
{
256 struct _FcEdit
*next
;
260 FcValueBinding binding
;
263 typedef struct _FcSubst
{
264 struct _FcSubst
*next
;
269 typedef struct _FcCharLeaf
{
270 FcChar32 map
[256/32];
273 #define FC_REF_CONSTANT -1
276 int ref
; /* reference count */
277 int num
; /* size of leaves and numbers arrays */
278 intptr_t leaves_offset
;
279 intptr_t numbers_offset
;
282 #define FcCharSetLeaves(c) FcOffsetMember(c,leaves_offset,intptr_t)
283 #define FcCharSetLeaf(c,i) (FcOffsetToPtr(FcCharSetLeaves(c), \
284 FcCharSetLeaves(c)[i], \
286 #define FcCharSetNumbers(c) FcOffsetMember(c,numbers_offset,FcChar16)
289 int ref
; /* reference count */
300 typedef struct _FcStrBuf
{
308 typedef struct _FcCache
{
309 int magic
; /* FC_CACHE_MAGIC */
310 off_t size
; /* size of file */
311 intptr_t dir
; /* offset to dir name */
312 intptr_t dirs
; /* offset to subdirs */
313 int dirs_count
; /* number of subdir strings */
314 intptr_t set
; /* offset to font set */
317 #define FcCacheDir(c) FcOffsetMember(c,dir,FcChar8)
318 #define FcCacheDirs(c) FcOffsetMember(c,dirs,intptr_t)
319 #define FcCacheSet(c) FcOffsetMember(c,set,FcFontSet)
322 * Used while constructing a directory cache object
325 #define FC_SERIALIZE_HASH_SIZE 8191
327 typedef struct _FcSerializeBucket
{
328 struct _FcSerializeBucket
*next
;
333 typedef struct _FcSerialize
{
336 FcSerializeBucket
*buckets
[FC_SERIALIZE_HASH_SIZE
];
340 * To map adobe glyph names to unicode values, a precomputed hash
344 typedef struct _FcGlyphName
{
345 FcChar32 ucs
; /* unicode value */
346 FcChar8 name
[1]; /* name extends beyond struct */
350 * To perform case-insensitive string comparisons, a table
351 * is used which holds three different kinds of folding data.
353 * The first is a range of upper case values mapping to a range
354 * of their lower case equivalents. Within each range, the offset
355 * between upper and lower case is constant.
357 * The second is a range of upper case values which are interleaved
358 * with their lower case equivalents.
360 * The third is a set of raw unicode values mapping to a list
361 * of unicode values for comparison purposes. This allows conversion
362 * of ß to "ss" so that SS, ss and ß all match. A separate array
363 * holds the list of unicode values for each entry.
365 * These are packed into a single table. Using a binary search,
366 * the appropriate entry can be located.
369 #define FC_CASE_FOLD_RANGE 0
370 #define FC_CASE_FOLD_EVEN_ODD 1
371 #define FC_CASE_FOLD_FULL 2
373 typedef struct _FcCaseFold
{
377 short offset
; /* lower - upper for RANGE, table id for FULL */
380 #define FC_MAX_FILE_LEN 4096
382 /* XXX remove these when we're ready */
384 #define fc_value_string(v) FcValueString(v)
385 #define fc_value_charset(v) FcValueCharSet(v)
386 #define fc_value_langset(v) FcValueLangSet(v)
387 #define fc_storage_type(v) ((v)->type)
389 #define fc_alignof(type) offsetof (struct { char c; type member; }, member)
391 #define FC_CACHE_MAGIC 0xFC02FC04
392 #define FC_CACHE_MAGIC_COPY 0xFC02FC05
395 FcChar8
*file
; /* original file name */
396 FcChar8
*new; /* temp file name -- write data here */
397 FcChar8
*lck
; /* lockfile name (used for locking) */
398 FcChar8
*tmp
; /* tmpfile name (used for locking) */
409 * File names loaded from the configuration -- saved here as the
410 * cache file must be consulted before the directories are scanned,
411 * and those directives may occur in any order
413 FcStrSet
*configDirs
; /* directories to scan for fonts */
414 FcChar8
*cache
; /* name of per-user cache file */
416 * Set of allowed blank chars -- used to
417 * trim fonts of bogus glyphs
421 * List of directories containing fonts,
422 * built by recursively scanning the set
423 * of configured directories
427 * List of directories containing cache files.
431 * Names of all of the configuration files used
432 * to create this configuration
434 FcStrSet
*configFiles
; /* config files loaded */
436 * Substitution instructions for patterns and fonts;
437 * maxObjects is used to allocate appropriate intermediate storage
438 * while performing a whole set of substitutions
440 FcSubst
*substPattern
; /* substitutions for patterns */
441 FcSubst
*substFont
; /* substitutions for fonts */
442 int maxObjects
; /* maximum number of tests in all substs */
444 * List of patterns used to control font file selection
446 FcStrSet
*acceptGlobs
;
447 FcStrSet
*rejectGlobs
;
448 FcFontSet
*acceptPatterns
;
449 FcFontSet
*rejectPatterns
;
451 * The set of fonts loaded from the listed directories; the
452 * order within the set does not determine the font selection,
453 * except in the case of identical matches in which case earlier fonts
454 * match preferrentially
456 FcFontSet
*fonts
[FcSetApplication
+ 1];
458 * Fontconfig can periodically rescan the system configuration
459 * and font directories. This rescanning occurs when font
460 * listing requests are made, but no more often than rescanInterval
463 time_t rescanTime
; /* last time information was scanned */
464 int rescanInterval
; /* interval between scans */
467 extern FcConfig
*_fcConfig
;
469 typedef struct _FcFileTime
{
474 typedef struct _FcCharMap FcCharMap
;
476 /* watch out; assumes that v is void * -PL */
477 #define ALIGN(v,type) ((void *)(((uintptr_t)(v) + fc_alignof(type) - 1) & ~(fc_alignof(type) - 1)))
484 FcCacheRead (FcConfig
*config
);
487 FcDirCacheWrite (FcFontSet
*set
, FcStrSet
* dirs
, const FcChar8
*dir
, FcConfig
*config
);
490 FcDirCacheConsume (FILE *file
, FcFontSet
*set
, FcStrSet
*dirs
,
491 const FcChar8
*dir
, char *dirname
);
494 FcDirCacheRead (FcFontSet
* set
, FcStrSet
* dirs
, const FcChar8
*dir
, FcConfig
*config
);
499 FcConfigAddConfigDir (FcConfig
*config
,
503 FcConfigAddFontDir (FcConfig
*config
,
507 FcConfigAddDir (FcConfig
*config
,
511 FcConfigAddCacheDir (FcConfig
*config
,
515 FcConfigGetCacheDirs (FcConfig
*config
);
518 FcConfigAddConfigFile (FcConfig
*config
,
522 FcConfigSetCache (FcConfig
*config
,
526 FcConfigAddBlank (FcConfig
*config
,
530 FcConfigAddEdit (FcConfig
*config
,
536 FcConfigSetFonts (FcConfig
*config
,
541 FcConfigCompareValue (const FcValue
*m
,
546 FcConfigGlobAdd (FcConfig
*config
,
551 FcConfigAcceptFilename (FcConfig
*config
,
552 const FcChar8
*filename
);
555 FcConfigPatternsAdd (FcConfig
*config
,
560 FcConfigAcceptFont (FcConfig
*config
,
561 const FcPattern
*font
);
564 FcConfigModifiedTime (FcConfig
*config
);
567 FcAlignSize (intptr_t size
);
570 FcSerializeCreate (void);
573 FcSerializeDestroy (FcSerialize
*serialize
);
576 FcSerializeAlloc (FcSerialize
*serialize
, const void *object
, int size
);
579 FcSerializeReserve (FcSerialize
*serialize
, int size
);
582 FcSerializeOffset (FcSerialize
*serialize
, const void *object
);
585 FcSerializePtr (FcSerialize
*serialize
, const void *object
);
588 FcLangSetSerializeAlloc (FcSerialize
*serialize
, const FcLangSet
*l
);
591 FcLangSetSerialize(FcSerialize
*serialize
, const FcLangSet
*l
);
595 FcLangCharSetPopulate (void);
598 FcCharSetFreeze (FcCharSet
*cs
);
601 FcCharSetThawAll (void);
604 FcNameUnparseCharSet (FcStrBuf
*buf
, const FcCharSet
*c
);
607 FcNameParseCharSet (FcChar8
*string
);
610 FcCharSetFindLeafCreate (FcCharSet
*fcs
, FcChar32 ucs4
);
613 FcCharSetSerializeAlloc(FcSerialize
*serialize
, const FcCharSet
*cs
);
616 FcCharSetSerialize(FcSerialize
*serialize
, const FcCharSet
*cs
);
619 FcCharSetGetNumbers(const FcCharSet
*c
);
623 FcValueListPrint (const FcValueListPtr l
);
626 FcLangSetPrint (const FcLangSet
*ls
);
632 FcTestPrint (const FcTest
*test
);
635 FcExprPrint (const FcExpr
*expr
);
638 FcEditPrint (const FcEdit
*edit
);
641 FcSubstPrint (const FcSubst
*subst
);
644 FcCharSetPrint (const FcCharSet
*c
);
646 extern int FcDebugVal
;
649 FcDebug (void) { return FcDebugVal
; }
656 FcGetDefaultLang (void);
661 FcFileIsDir (const FcChar8
*file
);
664 FcFileScanConfig (FcFontSet
*set
,
672 FcDirScanConfig (FcFontSet
*set
,
685 FcFreeTypeIsExclusiveLang (const FcChar8
*lang
);
688 FcFreeTypeHasLang (FcPattern
*pattern
, const FcChar8
*lang
);
691 FcFreeTypeUcs4ToPrivate (FcChar32 ucs4
, const FcCharMap
*map
);
694 FcFreeTypePrivateToUcs4 (FcChar32
private, const FcCharMap
*map
);
697 FcFreeTypeGetPrivateMap (FT_Encoding encoding
);
702 FcFontSetSerializeAlloc (FcSerialize
*serialize
, const FcFontSet
*s
);
705 FcFontSetSerialize (FcSerialize
*serialize
, const FcFontSet
* s
);
709 FcConfigparse (void);
715 FcConfigerror (char *fmt
, ...);
718 FcConfigSaveField (const char *field
);
721 FcTestDestroy (FcTest
*test
);
724 FcExprCreateInteger (int i
);
727 FcExprCreateDouble (double d
);
730 FcExprCreateString (const FcChar8
*s
);
733 FcExprCreateMatrix (const FcMatrix
*m
);
736 FcExprCreateBool (FcBool b
);
739 FcExprCreateNil (void);
742 FcExprCreateField (const char *field
);
745 FcExprCreateConst (const FcChar8
*constant
);
748 FcExprCreateOp (FcExpr
*left
, FcOp op
, FcExpr
*right
);
751 FcExprDestroy (FcExpr
*e
);
754 FcEditDestroy (FcEdit
*e
);
762 FcMemAlloc (int kind
, int size
);
765 FcMemFree (int kind
, int size
);
769 FcFreeTypeLangSet (const FcCharSet
*charset
,
770 const FcChar8
*exclusiveLang
);
773 FcLangCompare (const FcChar8
*s1
, const FcChar8
*s2
);
776 FcCharSetForLang (const FcChar8
*lang
);
779 FcLangSetPromote (const FcChar8
*lang
);
782 FcNameParseLangSet (const FcChar8
*string
);
785 FcNameUnparseLangSet (FcStrBuf
*buf
, const FcLangSet
*ls
);
790 FcListPatternMatchAny (const FcPattern
*p
,
791 const FcPattern
*font
);
798 * NOTE -- this ordering is part of the cache file format.
799 * It must also match the ordering in fcname.c
802 #define FC_FAMILY_OBJECT 1
803 #define FC_FAMILYLANG_OBJECT 2
804 #define FC_STYLE_OBJECT 3
805 #define FC_STYLELANG_OBJECT 4
806 #define FC_FULLNAME_OBJECT 5
807 #define FC_FULLNAMELANG_OBJECT 6
808 #define FC_SLANT_OBJECT 7
809 #define FC_WEIGHT_OBJECT 8
810 #define FC_WIDTH_OBJECT 9
811 #define FC_SIZE_OBJECT 10
812 #define FC_ASPECT_OBJECT 11
813 #define FC_PIXEL_SIZE_OBJECT 12
814 #define FC_SPACING_OBJECT 13
815 #define FC_FOUNDRY_OBJECT 14
816 #define FC_ANTIALIAS_OBJECT 15
817 #define FC_HINT_STYLE_OBJECT 16
818 #define FC_HINTING_OBJECT 17
819 #define FC_VERTICAL_LAYOUT_OBJECT 18
820 #define FC_AUTOHINT_OBJECT 19
821 #define FC_GLOBAL_ADVANCE_OBJECT 20
822 #define FC_FILE_OBJECT 21
823 #define FC_INDEX_OBJECT 22
824 #define FC_RASTERIZER_OBJECT 23
825 #define FC_OUTLINE_OBJECT 24
826 #define FC_SCALABLE_OBJECT 25
827 #define FC_DPI_OBJECT 26
828 #define FC_RGBA_OBJECT 27
829 #define FC_SCALE_OBJECT 28
830 #define FC_MINSPACE_OBJECT 29
831 #define FC_CHAR_WIDTH_OBJECT 30
832 #define FC_CHAR_HEIGHT_OBJECT 31
833 #define FC_MATRIX_OBJECT 32
834 #define FC_CHARSET_OBJECT 33
835 #define FC_LANG_OBJECT 34
836 #define FC_FONTVERSION_OBJECT 35
837 #define FC_CAPABILITY_OBJECT 36
838 #define FC_FONTFORMAT_OBJECT 37
839 #define FC_EMBOLDEN_OBJECT 38
840 #define FC_EMBEDDED_BITMAP_OBJECT 39
843 FcNameBool (const FcChar8
*v
, FcBool
*result
);
846 FcObjectValidType (FcObject object
, FcType type
);
849 FcObjectFromName (const char * name
);
852 FcObjectName (FcObject object
);
854 #define FcObjectCompare(a, b) ((int) a - (int) b)
857 FcObjectStaticNameFini (void);
862 FcValueCanonicalize (const FcValue
*v
);
865 FcValueListDestroy (FcValueListPtr l
);
868 FcPatternObjectFindElt (const FcPattern
*p
, FcObject object
);
871 FcPatternObjectInsertElt (FcPattern
*p
, FcObject object
);
874 FcPatternObjectAddWithBinding (FcPattern
*p
,
877 FcValueBinding binding
,
881 FcPatternObjectAdd (FcPattern
*p
, FcObject object
, FcValue value
, FcBool append
);
884 FcPatternObjectAddWeak (FcPattern
*p
, FcObject object
, FcValue value
, FcBool append
);
887 FcPatternObjectGet (const FcPattern
*p
, FcObject object
, int id
, FcValue
*v
);
890 FcPatternObjectDel (FcPattern
*p
, FcObject object
);
893 FcPatternObjectRemove (FcPattern
*p
, FcObject object
, int id
);
896 FcPatternObjectAddInteger (FcPattern
*p
, FcObject object
, int i
);
899 FcPatternObjectAddDouble (FcPattern
*p
, FcObject object
, double d
);
902 FcPatternObjectAddString (FcPattern
*p
, FcObject object
, const FcChar8
*s
);
905 FcPatternObjectAddMatrix (FcPattern
*p
, FcObject object
, const FcMatrix
*s
);
908 FcPatternObjectAddCharSet (FcPattern
*p
, FcObject object
, const FcCharSet
*c
);
911 FcPatternObjectAddBool (FcPattern
*p
, FcObject object
, FcBool b
);
914 FcPatternObjectAddLangSet (FcPattern
*p
, FcObject object
, const FcLangSet
*ls
);
917 FcPatternObjectGetInteger (const FcPattern
*p
, FcObject object
, int n
, int *i
);
920 FcPatternObjectGetDouble (const FcPattern
*p
, FcObject object
, int n
, double *d
);
923 FcPatternObjectGetString (const FcPattern
*p
, FcObject object
, int n
, FcChar8
** s
);
926 FcPatternObjectGetMatrix (const FcPattern
*p
, FcObject object
, int n
, FcMatrix
**s
);
929 FcPatternObjectGetCharSet (const FcPattern
*p
, FcObject object
, int n
, FcCharSet
**c
);
932 FcPatternObjectGetBool (const FcPattern
*p
, FcObject object
, int n
, FcBool
*b
);
935 FcPatternObjectGetLangSet (const FcPattern
*p
, FcObject object
, int n
, FcLangSet
**ls
);
938 FcPatternFini (void);
941 FcPatternAppend (FcPattern
*p
, FcPattern
*s
);
944 FcStrStaticName (const FcChar8
*name
);
947 FcStringHash (const FcChar8
*s
);
950 FcPatternSerializeAlloc (FcSerialize
*serialize
, const FcPattern
*pat
);
953 FcPatternSerialize (FcSerialize
*serialize
, const FcPattern
*pat
);
956 FcValueListSerializeAlloc (FcSerialize
*serialize
, const FcValueList
*pat
);
959 FcValueListSerialize (FcSerialize
*serialize
, const FcValueList
*pat
);
965 extern const FcMatrix FcIdentityMatrix
;
968 FcMatrixFree (FcMatrix
*mat
);
972 FcStrSetSort (FcStrSet
* set
);
975 FcStrPlus (const FcChar8
*s1
, const FcChar8
*s2
);
978 FcStrFree (FcChar8
*s
);
981 FcStrBufInit (FcStrBuf
*buf
, FcChar8
*init
, int size
);
984 FcStrBufDestroy (FcStrBuf
*buf
);
987 FcStrBufDone (FcStrBuf
*buf
);
990 FcStrBufChar (FcStrBuf
*buf
, FcChar8 c
);
993 FcStrBufString (FcStrBuf
*buf
, const FcChar8
*s
);
996 FcStrBufData (FcStrBuf
*buf
, const FcChar8
*s
, int len
);
999 FcStrCmpIgnoreBlanksAndCase (const FcChar8
*s1
, const FcChar8
*s2
);
1002 FcStrContainsIgnoreBlanksAndCase (const FcChar8
*s1
, const FcChar8
*s2
);
1005 FcStrContainsIgnoreCase (const FcChar8
*s1
, const FcChar8
*s2
);
1008 FcStrUsesHome (const FcChar8
*s
);
1011 FcStrLastSlash (const FcChar8
*path
);
1014 FcStrHashIgnoreCase (const FcChar8
*s
);
1017 FcStrCanonFilename (const FcChar8
*s
);
1020 FcStrSerializeAlloc (FcSerialize
*serialize
, const FcChar8
*str
);
1023 FcStrSerialize (FcSerialize
*serialize
, const FcChar8
*str
);
1025 #endif /* _FC_INT_H_ */