]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcdir.c
Move existing fonts.conf to fonts.conf.bak
[fontconfig.git] / src / fcdir.c
index 6ae7052e2b69eec4e798d2a15f6b57efa1bc3ef0..9ce22daf660884af223ed91df92bac740ea687c0 100644 (file)
@@ -141,7 +141,7 @@ FcFileScanConfig (FcFontSet *set,
        /*
         * Add the font
         */
-       if (font)
+       if (font && (!config || FcConfigAcceptFont (config, font)))
        {
            if (!FcFontSetAdd (set, font))
            {