[Fontconfig] blacklisting doesn't work

Patrick Lam plam at MIT.EDU
Sat Oct 22 10:18:39 EST 2005

Patrick Lam wrote:
> It seems to work for me without the patch... could you check again?  In
> particular,
>  <rejectfont>
>       <pattern>
>         <patelt name="family">
>            <string>Hershey-Gothic-English</string></patelt>
>       </pattern>
>     </rejectfont>
> on CVS HEAD (and indeed, 2.3.90, which is what was installed on a test
> computer) causes Hershey-Gothic-English to not show up in fc-list.

This doesn't quite work properly: if the config blacklists
Hershey-Gothic-English, then Hershey-Gothic-English won't show up in
fonts.cache-2 and so it won't be loaded on subsequent runs.  Even if
it's not blacklisted in the future.  On the other hand, if
Hershey-Gothic-English is in the cache and blacklisted, then it doesn't
show up in fc-list.

I guess caches should be invalid if the configuration is newer than the
cache.  Looks like I'll have to cook up a patch to do that, or to put
all fonts in the cache and filter later.  fc-cache puts all fonts in the
cache, but this is not true of the global cache.  Suggestions?


More information about the Fontconfig mailing list