summaryrefslogtreecommitdiff
path: root/src/fccfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fccfg.c')
-rw-r--r--src/fccfg.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/fccfg.c b/src/fccfg.c
index 7be4cdd4..a5de075f 100644
--- a/src/fccfg.c
+++ b/src/fccfg.c
@@ -252,16 +252,22 @@ FcConfigBuildFonts (FcConfig *config)
FcStrList *list;
FcChar8 *dir;
+#if 0
+ if (config->cache)
+ FcGlobalCacheLoad (cache, config->cache);
+#endif
+ if (config->fonts[FcSetSystem])
+ return FcTrue;
+
fonts = FcFontSetCreate ();
if (!fonts)
goto bail0;
-
+
+#if 0
cache = FcGlobalCacheCreate ();
if (!cache)
goto bail1;
-
- if (config->cache)
- FcGlobalCacheLoad (cache, config->cache);
+#endif
list = FcConfigGetFontDirs (config);
if (!list)
@@ -280,9 +286,11 @@ FcConfigBuildFonts (FcConfig *config)
if (FcDebug () & FC_DBG_FONTSET)
FcFontSetPrint (fonts);
+#if 0
if (config->cache)
FcGlobalCacheSave (cache, config->cache);
FcGlobalCacheDestroy (cache);
+#endif
FcConfigSetFonts (config, fonts, FcSetSystem);