X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2Ffcdir.c;h=9ce22daf660884af223ed91df92bac740ea687c0;hb=4f27c1c0a383e891890ab27c74226957ed7067aa;hp=6ae7052e2b69eec4e798d2a15f6b57efa1bc3ef0;hpb=c641c77d6f1a0b378e800c9e3502ae446839a8af;p=fontconfig.git diff --git a/src/fcdir.c b/src/fcdir.c index 6ae7052..9ce22da 100644 --- a/src/fcdir.c +++ b/src/fcdir.c @@ -141,7 +141,7 @@ FcFileScanConfig (FcFontSet *set, /* * Add the font */ - if (font) + if (font && (!config || FcConfigAcceptFont (config, font))) { if (!FcFontSetAdd (set, font)) {