#define FC_FONT_FILE_INVALID ((FcChar8 *) ".")
#define FC_FONT_FILE_DIR ((FcChar8 *) ".dir")
+#define FC_GLOBAL_MAGIC_COOKIE "GLOBAL"
#ifdef _WIN32
#define FC_SEARCH_PATH_SEPARATOR ';'
FcBool
FcGlobalCacheUpdate (FcGlobalCache *cache,
const char *file,
- FcFontSet *set);
+ FcFontSet *set,
+ FcConfig *config);
FcBool
FcGlobalCacheSave (FcGlobalCache *cache,
- const FcChar8 *cache_file);
+ const FcChar8 *cache_file,
+ FcConfig *config);
FcFontSet *
FcCacheRead (FcConfig *config, FcGlobalCache * cache);
FcDirCacheWrite (FcFontSet *set, FcStrSet * dirs, const FcChar8 *dir);
FcBool
-FcDirCacheRead (FcFontSet * set, FcStrSet * dirs, const FcChar8 *dir);
+FcDirCacheRead (FcFontSet * set, FcStrSet * dirs, const FcChar8 *dir, FcConfig *config);
extern int *_fcBankId, *_fcBankIdx;
int
static __inline__ int
FcCacheBankToIndex (int bank)
{
- return (_fcBankId && _fcBankId[*_fcBankIdx] == bank) ? *_fcBankIdx : FcCacheBankToIndexMTF(bank);
+ return (_fcBankId[*_fcBankIdx] == bank) ? *_fcBankIdx : FcCacheBankToIndexMTF(bank);
}
const char *
FcConfigAddConfigFile (FcConfig *config,
const FcChar8 *f);
+const FcChar8 *
+FcConfigNormalizeFontDir (FcConfig *config,
+ const FcChar8 *d);
+
FcBool
FcConfigSetCache (FcConfig *config,
const FcChar8 *c);