[Fontconfig] Include directories once only

Patrick Lam plam at MIT.EDU
Wed Nov 30 09:33:12 PST 2005


Behdad Esfahbod wrote:
> Hi,
> 
> There's a but report for Pango here:
> 
>   http://bugzilla.gnome.org/show_bug.cgi?id=89946
> 
> that while being a user problem, can be fixed by fontconfig doing
> these:
> 
>   1) Not to include a config file more than once,
>   2) Not to scan a directory more than once.
> 
> Is it possible/easy to do that?

Please send me a patch to FcConfigAddFontDir and FcConfigAddConfigFile
in fccfg.c that ensure that no font dir or config file is added more
than once.  Keeping them in sorted order is one way to do that, a hash
table is another way.

pat


More information about the Fontconfig mailing list