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:
parent
25436fd08f
commit
5e544b32d8
|
@ -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 ());
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue