[Fontconfig] fc-cache is not always caching newly installed fonts.

Jan Claeys lists at janc.be
Tue Oct 30 12:37:26 PDT 2007


Op dinsdag 30-10-2007 om 10:48 uur [tijdzone -0700], schreef Keith
Packard:
> On Fri, 2007-10-26 at 15:27 +0200, Jan Claeys wrote:
> > I think Debian & Ubuntu do (something like) this at the moment, and it's
> > really slow indeed.  But recently apt/dpkg has grown a "hooks" system
> > that allows for running such commands only once after installing all
> > selected packages.  That should make the wait-times acceptable.
> 
> I've just rewritten the debian fontconfig hook that runs when fonts
> are installed -- it runs 'fc-cache -f' only on the directory receiving
> the fonts (to make sure updates are re-cached). Then it runs 'fc-cache
> -s' to make sure any directories leading to the new fonts are cached
> as well. All of these are run after all fonts are installed, so each
> directory is only cached once (well, twice currently, but I think
> that's a bug somewhere).
> 
> Performance is quite reasonable now.

That sounds great, and this should get imported in the next Ubuntu
release too then.

Thanks!


-- 
Jan Claeys



More information about the Fontconfig mailing list