2 * fontconfig/fontconfig/fontconfig.h
4 * Copyright © 2001 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.
25 #ifndef _FONTCONFIG_H_
26 #define _FONTCONFIG_H_
28 #include <sys/types.h>
32 #if defined(__GNUC__) && (__GNUC__ >= 4)
33 #define FC_ATTRIBUTE_SENTINEL(x) __attribute__((__sentinel__(0)))
35 #define FC_ATTRIBUTE_SENTINEL(x)
42 typedef unsigned char FcChar8;
43 typedef unsigned short FcChar16;
44 typedef unsigned int FcChar32;
48 * Current Fontconfig version number. This same number
49 * must appear in the fontconfig configure.in file. Yes,
50 * it'a a pain to synchronize version numbers like this.
57 #define FC_VERSION ((FC_MAJOR * 10000) + (FC_MINOR * 100) + (FC_REVISION))
60 * Current font cache file format version
61 * This is appended to the cache files so that multiple
62 * versions of the library will peacefully coexist
64 * Change this value whenever the disk format for the cache file
65 * changes in any non-compatible way. Try to avoid such changes as
66 * it means multiple copies of the font information.
69 #define FC_CACHE_VERSION_NUMBER 7
70 #define _FC_STRINGIFY_(s) #s
71 #define _FC_STRINGIFY(s) _FC_STRINGIFY_(s)
72 #define FC_CACHE_VERSION _FC_STRINGIFY(FC_CACHE_VERSION_NUMBER)
77 #define FC_FAMILY "family" /* String */
78 #define FC_STYLE "style" /* String */
79 #define FC_SLANT "slant" /* Int */
80 #define FC_WEIGHT "weight" /* Int */
81 #define FC_SIZE "size" /* Range (double) */
82 #define FC_ASPECT "aspect" /* Double */
83 #define FC_PIXEL_SIZE "pixelsize" /* Double */
84 #define FC_SPACING "spacing" /* Int */
85 #define FC_FOUNDRY "foundry" /* String */
86 #define FC_ANTIALIAS "antialias" /* Bool (depends) */
87 #define FC_HINTING "hinting" /* Bool (true) */
88 #define FC_HINT_STYLE "hintstyle" /* Int */
89 #define FC_VERTICAL_LAYOUT "verticallayout" /* Bool (false) */
90 #define FC_AUTOHINT "autohint" /* Bool (false) */
91 /* FC_GLOBAL_ADVANCE is deprecated. this is simply ignored on freetype 2.4.5 or later */
92 #define FC_GLOBAL_ADVANCE "globaladvance" /* Bool (true) */
93 #define FC_WIDTH "width" /* Int */
94 #define FC_FILE "file" /* String */
95 #define FC_INDEX "index" /* Int */
96 #define FC_FT_FACE "ftface" /* FT_Face */
97 #define FC_RASTERIZER "rasterizer" /* String (deprecated) */
98 #define FC_OUTLINE "outline" /* Bool */
99 #define FC_SCALABLE "scalable" /* Bool */
100 #define FC_COLOR "color" /* Bool */
101 #define FC_SCALE "scale" /* double (deprecated) */
102 #define FC_SYMBOL "symbol" /* Bool */
103 #define FC_DPI "dpi" /* double */
104 #define FC_RGBA "rgba" /* Int */
105 #define FC_MINSPACE "minspace" /* Bool use minimum line spacing */
106 #define FC_SOURCE "source" /* String (deprecated) */
107 #define FC_CHARSET "charset" /* CharSet */
108 #define FC_LANG "lang" /* String RFC 3066 langs */
109 #define FC_FONTVERSION "fontversion" /* Int from 'head' table */
110 #define FC_FULLNAME "fullname" /* String */
111 #define FC_FAMILYLANG "familylang" /* String RFC 3066 langs */
112 #define FC_STYLELANG "stylelang" /* String RFC 3066 langs */
113 #define FC_FULLNAMELANG "fullnamelang" /* String RFC 3066 langs */
114 #define FC_CAPABILITY "capability" /* String */
115 #define FC_FONTFORMAT "fontformat" /* String */
116 #define FC_EMBOLDEN "embolden" /* Bool - true if emboldening needed*/
117 #define FC_EMBEDDED_BITMAP "embeddedbitmap" /* Bool - true to enable embedded bitmaps */
118 #define FC_DECORATIVE "decorative" /* Bool - true if style is a decorative variant */
119 #define FC_LCD_FILTER "lcdfilter" /* Int */
120 #define FC_FONT_FEATURES "fontfeatures" /* String */
121 #define FC_NAMELANG "namelang" /* String RFC 3866 langs */
122 #define FC_PRGNAME "prgname" /* String */
123 #define FC_HASH "hash" /* String (deprecated) */
124 #define FC_POSTSCRIPT_NAME "postscriptname" /* String */
126 #define FC_CACHE_SUFFIX ".cache-" FC_CACHE_VERSION
127 #define FC_DIR_CACHE_FILE "fonts.cache-" FC_CACHE_VERSION
128 #define FC_USER_CACHE_FILE ".fonts.cache-" FC_CACHE_VERSION
130 /* Adjust outline rasterizer */
131 #define FC_CHAR_WIDTH "charwidth" /* Int */
132 #define FC_CHAR_HEIGHT "charheight"/* Int */
133 #define FC_MATRIX "matrix" /* FcMatrix */
135 #define FC_WEIGHT_THIN 0
136 #define FC_WEIGHT_EXTRALIGHT 40
137 #define FC_WEIGHT_ULTRALIGHT FC_WEIGHT_EXTRALIGHT
138 #define FC_WEIGHT_LIGHT 50
139 #define FC_WEIGHT_DEMILIGHT 55
140 #define FC_WEIGHT_SEMILIGHT FC_WEIGHT_DEMILIGHT
141 #define FC_WEIGHT_BOOK 75
142 #define FC_WEIGHT_REGULAR 80
143 #define FC_WEIGHT_NORMAL FC_WEIGHT_REGULAR
144 #define FC_WEIGHT_MEDIUM 100
145 #define FC_WEIGHT_DEMIBOLD 180
146 #define FC_WEIGHT_SEMIBOLD FC_WEIGHT_DEMIBOLD
147 #define FC_WEIGHT_BOLD 200
148 #define FC_WEIGHT_EXTRABOLD 205
149 #define FC_WEIGHT_ULTRABOLD FC_WEIGHT_EXTRABOLD
150 #define FC_WEIGHT_BLACK 210
151 #define FC_WEIGHT_HEAVY FC_WEIGHT_BLACK
152 #define FC_WEIGHT_EXTRABLACK 215
153 #define FC_WEIGHT_ULTRABLACK FC_WEIGHT_EXTRABLACK
155 #define FC_SLANT_ROMAN 0
156 #define FC_SLANT_ITALIC 100
157 #define FC_SLANT_OBLIQUE 110
159 #define FC_WIDTH_ULTRACONDENSED 50
160 #define FC_WIDTH_EXTRACONDENSED 63
161 #define FC_WIDTH_CONDENSED 75
162 #define FC_WIDTH_SEMICONDENSED 87
163 #define FC_WIDTH_NORMAL 100
164 #define FC_WIDTH_SEMIEXPANDED 113
165 #define FC_WIDTH_EXPANDED 125
166 #define FC_WIDTH_EXTRAEXPANDED 150
167 #define FC_WIDTH_ULTRAEXPANDED 200
169 #define FC_PROPORTIONAL 0
172 #define FC_CHARCELL 110
174 /* sub-pixel order */
175 #define FC_RGBA_UNKNOWN 0
176 #define FC_RGBA_RGB 1
177 #define FC_RGBA_BGR 2
178 #define FC_RGBA_VRGB 3
179 #define FC_RGBA_VBGR 4
180 #define FC_RGBA_NONE 5
183 #define FC_HINT_NONE 0
184 #define FC_HINT_SLIGHT 1
185 #define FC_HINT_MEDIUM 2
186 #define FC_HINT_FULL 3
189 #define FC_LCD_NONE 0
190 #define FC_LCD_DEFAULT 1
191 #define FC_LCD_LIGHT 2
192 #define FC_LCD_LEGACY 3
194 #define SIZEOF_VOID_P 4
196 typedef enum _FcType {
210 typedef struct _FcMatrix {
211 double xx, xy, yx, yy;
214 #define FcMatrixInit(m) ((m)->xx = (m)->yy = 1, \
215 (m)->xy = (m)->yx = 0)
218 * A data structure to represent the available glyphs in a font.
219 * This is represented as a sparse boolean btree.
222 typedef struct _FcCharSet FcCharSet;
224 typedef struct _FcObjectType {
229 typedef struct _FcConstant {
235 typedef enum _FcResult {
236 FcResultMatch, FcResultNoMatch, FcResultTypeMismatch, FcResultNoId,
240 typedef struct _FcPattern FcPattern;
242 typedef struct _FcLangSet FcLangSet;
244 typedef struct _FcRange FcRange;
246 typedef struct _FcValue {
261 typedef struct _FcFontSet {
267 typedef struct _FcObjectSet {
270 const char **objects;
273 typedef enum _FcMatchKind {
274 FcMatchPattern, FcMatchFont, FcMatchScan
277 typedef enum _FcLangResult {
279 FcLangDifferentCountry = 1,
280 FcLangDifferentTerritory = 1,
281 FcLangDifferentLang = 2
284 typedef enum _FcSetName {
289 typedef struct _FcAtomic FcAtomic;
291 #if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */
292 #define _FCFUNCPROTOBEGIN extern "C" { /* do not leave open across includes */
293 #define _FCFUNCPROTOEND }
295 #define _FCFUNCPROTOBEGIN
296 #define _FCFUNCPROTOEND
299 typedef enum { FcEndianBig, FcEndianLittle } FcEndian;
301 typedef struct _FcConfig FcConfig;
303 typedef struct _FcGlobalCache FcFileCache;
305 typedef struct _FcBlanks FcBlanks;
307 typedef struct _FcStrList FcStrList;
309 typedef struct _FcStrSet FcStrSet;
311 typedef struct _FcCache FcCache;
317 FcBlanksCreate (void);
320 FcBlanksDestroy (FcBlanks *b);
323 FcBlanksAdd (FcBlanks *b, FcChar32 ucs4);
326 FcBlanksIsMember (FcBlanks *b, FcChar32 ucs4);
330 FcPublic const FcChar8 *
331 FcCacheDir(const FcCache *c);
334 FcCacheCopySet(const FcCache *c);
336 FcPublic const FcChar8 *
337 FcCacheSubdir (const FcCache *c, int i);
340 FcCacheNumSubdir (const FcCache *c);
343 FcCacheNumFont (const FcCache *c);
346 FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config);
349 FcDirCacheValid (const FcChar8 *cache_file);
352 FcDirCacheClean (const FcChar8 *cache_dir, FcBool verbose);
355 FcCacheCreateTagFile (const FcConfig *config);
362 FcConfigEnableHome (FcBool enable);
365 FcConfigFilename (const FcChar8 *url);
368 FcConfigCreate (void);
371 FcConfigReference (FcConfig *config);
374 FcConfigDestroy (FcConfig *config);
377 FcConfigSetCurrent (FcConfig *config);
380 FcConfigGetCurrent (void);
383 FcConfigUptoDate (FcConfig *config);
386 FcConfigBuildFonts (FcConfig *config);
389 FcConfigGetFontDirs (FcConfig *config);
392 FcConfigGetConfigDirs (FcConfig *config);
395 FcConfigGetConfigFiles (FcConfig *config);
398 FcConfigGetCache (FcConfig *config);
401 FcConfigGetBlanks (FcConfig *config);
404 FcConfigGetCacheDirs (const FcConfig *config);
407 FcConfigGetRescanInterval (FcConfig *config);
410 FcConfigSetRescanInterval (FcConfig *config, int rescanInterval);
413 FcConfigGetFonts (FcConfig *config,
417 FcConfigAppFontAddFile (FcConfig *config,
418 const FcChar8 *file);
421 FcConfigAppFontAddDir (FcConfig *config,
425 FcConfigAppFontClear (FcConfig *config);
428 FcConfigSubstituteWithPat (FcConfig *config,
434 FcConfigSubstitute (FcConfig *config,
438 FcPublic const FcChar8 *
439 FcConfigGetSysRoot (const FcConfig *config);
442 FcConfigSetSysRoot (FcConfig *config,
443 const FcChar8 *sysroot);
447 FcCharSetCreate (void);
449 /* deprecated alias for FcCharSetCreate */
454 FcCharSetDestroy (FcCharSet *fcs);
457 FcCharSetAddChar (FcCharSet *fcs, FcChar32 ucs4);
460 FcCharSetDelChar (FcCharSet *fcs, FcChar32 ucs4);
463 FcCharSetCopy (FcCharSet *src);
466 FcCharSetEqual (const FcCharSet *a, const FcCharSet *b);
469 FcCharSetIntersect (const FcCharSet *a, const FcCharSet *b);
472 FcCharSetUnion (const FcCharSet *a, const FcCharSet *b);
475 FcCharSetSubtract (const FcCharSet *a, const FcCharSet *b);
478 FcCharSetMerge (FcCharSet *a, const FcCharSet *b, FcBool *changed);
481 FcCharSetHasChar (const FcCharSet *fcs, FcChar32 ucs4);
484 FcCharSetCount (const FcCharSet *a);
487 FcCharSetIntersectCount (const FcCharSet *a, const FcCharSet *b);
490 FcCharSetSubtractCount (const FcCharSet *a, const FcCharSet *b);
493 FcCharSetIsSubset (const FcCharSet *a, const FcCharSet *b);
495 #define FC_CHARSET_MAP_SIZE (256/32)
496 #define FC_CHARSET_DONE ((FcChar32) -1)
499 FcCharSetFirstPage (const FcCharSet *a,
500 FcChar32 map[FC_CHARSET_MAP_SIZE],
504 FcCharSetNextPage (const FcCharSet *a,
505 FcChar32 map[FC_CHARSET_MAP_SIZE],
509 * old coverage API, rather hard to use correctly
513 FcCharSetCoverage (const FcCharSet *a, FcChar32 page, FcChar32 *result);
517 FcValuePrint (const FcValue v);
520 FcPatternPrint (const FcPattern *p);
523 FcFontSetPrint (const FcFontSet *s);
527 FcGetDefaultLangs (void);
530 FcDefaultSubstitute (FcPattern *pattern);
534 FcFileIsDir (const FcChar8 *file);
537 FcFileScan (FcFontSet *set,
545 FcDirScan (FcFontSet *set,
553 FcDirSave (FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir);
556 FcDirCacheLoad (const FcChar8 *dir, FcConfig *config, FcChar8 **cache_file);
559 FcDirCacheRescan (const FcChar8 *dir, FcConfig *config);
562 FcDirCacheRead (const FcChar8 *dir, FcBool force, FcConfig *config);
565 FcDirCacheLoadFile (const FcChar8 *cache_file, struct stat *file_stat);
568 FcDirCacheUnload (FcCache *cache);
572 FcFreeTypeQuery (const FcChar8 *file, int id, FcBlanks *blanks, int *count);
577 FcFontSetCreate (void);
580 FcFontSetDestroy (FcFontSet *s);
583 FcFontSetAdd (FcFontSet *s, FcPattern *font);
587 FcInitLoadConfig (void);
590 FcInitLoadConfigAndFonts (void);
602 FcInitReinitialize (void);
605 FcInitBringUptoDate (void);
612 FcLangNormalize (const FcChar8 *lang);
614 FcPublic const FcCharSet *
615 FcLangGetCharSet (const FcChar8 *lang);
618 FcLangSetCreate (void);
621 FcLangSetDestroy (FcLangSet *ls);
624 FcLangSetCopy (const FcLangSet *ls);
627 FcLangSetAdd (FcLangSet *ls, const FcChar8 *lang);
630 FcLangSetDel (FcLangSet *ls, const FcChar8 *lang);
632 FcPublic FcLangResult
633 FcLangSetHasLang (const FcLangSet *ls, const FcChar8 *lang);
635 FcPublic FcLangResult
636 FcLangSetCompare (const FcLangSet *lsa, const FcLangSet *lsb);
639 FcLangSetContains (const FcLangSet *lsa, const FcLangSet *lsb);
642 FcLangSetEqual (const FcLangSet *lsa, const FcLangSet *lsb);
645 FcLangSetHash (const FcLangSet *ls);
648 FcLangSetGetLangs (const FcLangSet *ls);
651 FcLangSetUnion (const FcLangSet *a, const FcLangSet *b);
654 FcLangSetSubtract (const FcLangSet *a, const FcLangSet *b);
657 FcPublic FcObjectSet *
658 FcObjectSetCreate (void);
661 FcObjectSetAdd (FcObjectSet *os, const char *object);
664 FcObjectSetDestroy (FcObjectSet *os);
666 FcPublic FcObjectSet *
667 FcObjectSetVaBuild (const char *first, va_list va);
669 FcPublic FcObjectSet *
670 FcObjectSetBuild (const char *first, ...) FC_ATTRIBUTE_SENTINEL(0);
673 FcFontSetList (FcConfig *config,
680 FcFontList (FcConfig *config,
687 FcAtomicCreate (const FcChar8 *file);
690 FcAtomicLock (FcAtomic *atomic);
693 FcAtomicNewFile (FcAtomic *atomic);
696 FcAtomicOrigFile (FcAtomic *atomic);
699 FcAtomicReplaceOrig (FcAtomic *atomic);
702 FcAtomicDeleteNew (FcAtomic *atomic);
705 FcAtomicUnlock (FcAtomic *atomic);
708 FcAtomicDestroy (FcAtomic *atomic);
712 FcFontSetMatch (FcConfig *config,
719 FcFontMatch (FcConfig *config,
724 FcFontRenderPrepare (FcConfig *config,
729 FcFontSetSort (FcConfig *config,
738 FcFontSort (FcConfig *config,
745 FcFontSetSortDestroy (FcFontSet *fs);
749 FcMatrixCopy (const FcMatrix *mat);
752 FcMatrixEqual (const FcMatrix *mat1, const FcMatrix *mat2);
755 FcMatrixMultiply (FcMatrix *result, const FcMatrix *a, const FcMatrix *b);
758 FcMatrixRotate (FcMatrix *m, double c, double s);
761 FcMatrixScale (FcMatrix *m, double sx, double sy);
764 FcMatrixShear (FcMatrix *m, double sh, double sv);
768 /* Deprecated. Does nothing. Returns FcFalse. */
770 FcNameRegisterObjectTypes (const FcObjectType *types, int ntype);
772 /* Deprecated. Does nothing. Returns FcFalse. */
774 FcNameUnregisterObjectTypes (const FcObjectType *types, int ntype);
776 FcPublic const FcObjectType *
777 FcNameGetObjectType (const char *object);
779 /* Deprecated. Does nothing. Returns FcFalse. */
781 FcNameRegisterConstants (const FcConstant *consts, int nconsts);
783 /* Deprecated. Does nothing. Returns FcFalse. */
785 FcNameUnregisterConstants (const FcConstant *consts, int nconsts);
787 FcPublic const FcConstant *
788 FcNameGetConstant (const FcChar8 *string);
791 FcNameConstant (const FcChar8 *string, int *result);
794 FcNameParse (const FcChar8 *name);
797 FcNameUnparse (FcPattern *pat);
801 FcPatternCreate (void);
804 FcPatternDuplicate (const FcPattern *p);
807 FcPatternReference (FcPattern *p);
810 FcPatternFilter (FcPattern *p, const FcObjectSet *os);
813 FcValueDestroy (FcValue v);
816 FcValueEqual (FcValue va, FcValue vb);
819 FcValueSave (FcValue v);
822 FcPatternDestroy (FcPattern *p);
825 FcPatternEqual (const FcPattern *pa, const FcPattern *pb);
828 FcPatternEqualSubset (const FcPattern *pa, const FcPattern *pb, const FcObjectSet *os);
831 FcPatternHash (const FcPattern *p);
834 FcPatternAdd (FcPattern *p, const char *object, FcValue value, FcBool append);
837 FcPatternAddWeak (FcPattern *p, const char *object, FcValue value, FcBool append);
840 FcPatternGet (const FcPattern *p, const char *object, int id, FcValue *v);
843 FcPatternDel (FcPattern *p, const char *object);
846 FcPatternRemove (FcPattern *p, const char *object, int id);
849 FcPatternAddInteger (FcPattern *p, const char *object, int i);
852 FcPatternAddDouble (FcPattern *p, const char *object, double d);
855 FcPatternAddString (FcPattern *p, const char *object, const FcChar8 *s);
858 FcPatternAddMatrix (FcPattern *p, const char *object, const FcMatrix *s);
861 FcPatternAddCharSet (FcPattern *p, const char *object, const FcCharSet *c);
864 FcPatternAddBool (FcPattern *p, const char *object, FcBool b);
867 FcPatternAddLangSet (FcPattern *p, const char *object, const FcLangSet *ls);
870 FcPatternAddRange (FcPattern *p, const char *object, const FcRange *r);
873 FcPatternGetInteger (const FcPattern *p, const char *object, int n, int *i);
876 FcPatternGetDouble (const FcPattern *p, const char *object, int n, double *d);
879 FcPatternGetString (const FcPattern *p, const char *object, int n, FcChar8 ** s);
882 FcPatternGetMatrix (const FcPattern *p, const char *object, int n, FcMatrix **s);
885 FcPatternGetCharSet (const FcPattern *p, const char *object, int n, FcCharSet **c);
888 FcPatternGetBool (const FcPattern *p, const char *object, int n, FcBool *b);
891 FcPatternGetLangSet (const FcPattern *p, const char *object, int n, FcLangSet **ls);
894 FcPatternGetRange (const FcPattern *p, const char *object, int id, FcRange **r);
897 FcPatternVaBuild (FcPattern *p, va_list va);
900 FcPatternBuild (FcPattern *p, ...) FC_ATTRIBUTE_SENTINEL(0);
903 FcPatternFormat (FcPattern *pat, const FcChar8 *format);
907 FcRangeCreateDouble (double begin, double end);
910 FcRangeCreateInteger (FcChar32 begin, FcChar32 end);
913 FcRangeDestroy (FcRange *range);
916 FcRangeCopy (const FcRange *r);
919 FcRangeGetDouble(const FcRange *range, double *begin, double *end);
924 FcWeightFromOpenType (int ot_weight);
927 FcWeightToOpenType (int fc_weight);
932 FcStrCopy (const FcChar8 *s);
935 FcStrCopyFilename (const FcChar8 *s);
938 FcStrPlus (const FcChar8 *s1, const FcChar8 *s2);
941 FcStrFree (FcChar8 *s);
943 /* These are ASCII only, suitable only for pattern element names */
944 #define FcIsUpper(c) ((0101 <= (c) && (c) <= 0132))
945 #define FcIsLower(c) ((0141 <= (c) && (c) <= 0172))
946 #define FcToLower(c) (FcIsUpper(c) ? (c) - 0101 + 0141 : (c))
949 FcStrDowncase (const FcChar8 *s);
952 FcStrCmpIgnoreCase (const FcChar8 *s1, const FcChar8 *s2);
955 FcStrCmp (const FcChar8 *s1, const FcChar8 *s2);
957 FcPublic const FcChar8 *
958 FcStrStrIgnoreCase (const FcChar8 *s1, const FcChar8 *s2);
960 FcPublic const FcChar8 *
961 FcStrStr (const FcChar8 *s1, const FcChar8 *s2);
964 FcUtf8ToUcs4 (const FcChar8 *src_orig,
969 FcUtf8Len (const FcChar8 *string,
974 #define FC_UTF8_MAX_LEN 6
977 FcUcs4ToUtf8 (FcChar32 ucs4,
978 FcChar8 dest[FC_UTF8_MAX_LEN]);
981 FcUtf16ToUcs4 (const FcChar8 *src_orig,
984 int len); /* in bytes */
987 FcUtf16Len (const FcChar8 *string,
989 int len, /* in bytes */
994 FcStrDirname (const FcChar8 *file);
997 FcStrBasename (const FcChar8 *file);
1000 FcStrSetCreate (void);
1003 FcStrSetMember (FcStrSet *set, const FcChar8 *s);
1006 FcStrSetEqual (FcStrSet *sa, FcStrSet *sb);
1009 FcStrSetAdd (FcStrSet *set, const FcChar8 *s);
1012 FcStrSetAddFilename (FcStrSet *set, const FcChar8 *s);
1015 FcStrSetDel (FcStrSet *set, const FcChar8 *s);
1018 FcStrSetDestroy (FcStrSet *set);
1020 FcPublic FcStrList *
1021 FcStrListCreate (FcStrSet *set);
1024 FcStrListFirst (FcStrList *list);
1027 FcStrListNext (FcStrList *list);
1030 FcStrListDone (FcStrList *list);
1034 FcConfigParseAndLoad (FcConfig *config, const FcChar8 *file, FcBool complain);
1038 #undef FC_ATTRIBUTE_SENTINEL
1044 * Deprecated functions are placed here to help users fix their code without
1045 * digging through documentation
1048 #define FcConfigGetRescanInverval FcConfigGetRescanInverval_REPLACE_BY_FcConfigGetRescanInterval
1049 #define FcConfigSetRescanInverval FcConfigSetRescanInverval_REPLACE_BY_FcConfigSetRescanInterval
1053 #endif /* _FONTCONFIG_H_ */