]> git.wh0rd.org - fontconfig.git/commitdiff
Use default config in FcFileScan() and FcDirScan()
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 7 Sep 2009 02:10:22 +0000 (22:10 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 7 Sep 2009 02:10:22 +0000 (22:10 -0400)
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.

src/fcdir.c

index b43c3c647ddf5382e981a89d0aeea510d8782fed..f927c0b280bba171b805a86a1c961df2c9fdced9 100644 (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 ());
 }
 
 /*