fc-cache run time.
static FcBool
FcDirCacheConsume (int fd, FcFontSet *set);
-static FcBool
+FcBool
FcDirCacheRead (FcFontSet * set, FcStrSet * dirs, const FcChar8 *dir);
static int
}
/* read serialized state from the cache file */
-static FcBool
+FcBool
FcDirCacheRead (FcFontSet * set, FcStrSet * dirs, const FcChar8 *dir)
{
char *cache_file = (char *)FcStrPlus (dir, (FcChar8 *) "/" FC_DIR_CACHE_FILE);
*/
if (cache && FcGlobalCacheReadDir (set, dirs, cache, (char *)dir, config))
return FcTrue;
+
+ if (FcDirCacheRead (set, dirs, dir))
+ return FcTrue;
}
/* freed below */
FcBool
FcDirCacheWrite (FcFontSet *set, FcStrSet * dirs, const FcChar8 *dir);
+FcBool
+FcDirCacheRead (FcFontSet * set, FcStrSet * dirs, const FcChar8 *dir);
+
int
FcCacheBankToIndex (int bank);