Use default config in FcFileScan() and FcDirScan()

Before a NULL config was passed down adn essentially FcFileScan was
equivalent to FcFreeTypeQuery.  Now fc-scan tool correctly applies
the configuration to the scanned patterns.
This commit is contained in:
Behdad Esfahbod 2009-09-06 22:10:22 -04:00
parent 25436fd08f
commit 5e544b32d8
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ FcFileScan (FcFontSet *set,
const FcChar8 *file,
FcBool force)
{
return FcFileScanConfig (set, dirs, blanks, file, NULL);
return FcFileScanConfig (set, dirs, blanks, file, FcConfigGetCurrent ());
}
/*
@ -225,7 +225,7 @@ FcDirScan (FcFontSet *set,
if (cache || !force)
return FcFalse;
return FcDirScanConfig (set, dirs, blanks, dir, force, NULL);
return FcDirScanConfig (set, dirs, blanks, dir, force, FcConfigGetCurrent ());
}
/*