[Fontconfig] Trouble forcing rescanning of font dirs

Mike FABIAN mfabian at suse.de
Mon Feb 2 03:06:02 PST 2009

"Diego Santa Cruz" <Diego.SantaCruz at spinetix.com> さんは書きました:

> Thus we try to force fontconfig to validate all its caches and we do
> this by doing something like
> if ( ! FcConfigUptoDate (0) )
>         FcInitReinitialize ();
> at appropriate times (i.e. just before reloading content).

I also think this is a bug, see 


Comment #24 of this bug has a patch which I attach here as well
for convenience.

The line

 if (dir_stat.st_mtime <= file_stat.st_mtime) {

was removed recently from fccache.c, I think this was probably removed
by accident and was a mistake.

Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
I � Unicode

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bnc438855-make-FcInitReinitialize-work-again.patch
Type: text/x-patch
Size: 715 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090202/ae3179ef/attachment.bin 

More information about the Fontconfig mailing list