/*
* Edit pattern with user-defined rules
*/
- if (config && !FcConfigSubstituteWithPat (config, font, NULL, FcMatchScan))
+ if (font && config && !FcConfigSubstituteWithPat (config, font, NULL, FcMatchScan))
{
FcPatternDestroy (font);
font = NULL;
int i;
FcBlanks *blanks = FcConfigGetBlanks (config);
FcCache *cache = NULL;
+ struct stat dir_stat;
if (FcDebug () & FC_DBG_FONTSET)
printf ("cache scan dir %s\n", dir);
ret = FcFalse;
goto bail_1;
}
+ if (stat ((char *) dir, &dir_stat) < 0)
+ {
+ ret = FcFalse;
+ goto bail_1;
+ }
set = FcFontSetCreate();
if (!set)
/*
* Build the cache object
*/
- cache = FcDirCacheBuild (set, dir, dirs);
+ cache = FcDirCacheBuild (set, dir, &dir_stat, dirs);
if (!cache)
goto bail3;
FcBool force,
FcConfig *config)
{
- return FcFalse; /* XXX fixme */
+ return FcFalse; /* XXX deprecated */
}
FcBool
const FcChar8 *dir,
FcBool force)
{
- return FcDirScanConfig (set, dirs, blanks, dir, force, NULL);
+ return FcFalse; /* XXX deprecated */
}
FcBool