X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2Ffccfg.c;h=a5de075f2a9c7bc04bda6c20e1069bba7997f1ae;hb=212c9f437e959fbdc5fe344c67b8c1cf8ca63edb;hp=7be4cdd4bd375880d7384f43f714a21651762a91;hpb=e1b9d091c661b0e1d1e9f73c5c55ad53959c55c7;p=fontconfig.git diff --git a/src/fccfg.c b/src/fccfg.c index 7be4cdd..a5de075 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);