[cairo] Cairo Font Cache

Chris Wilson chris at chris-wilson.co.uk
Wed Oct 23 17:41:29 CEST 2013

On Wed, Oct 23, 2013 at 05:35:22PM +0200, Edward Zimmermann wrote:
> I realize it’s a case that Cairo does not like. Its side-effects are real.
> I'm asking WHY?

It is kept in a holdover cache because a lot of applications do reuse
such fonts. And before that in your example, it is still being
referenced by the context anyway.

> Its NOT a live font. Its at most a dangling one.. I don't use it. Yes the pointer is still around in Cairo's
> tables but nobody will ask for it to do any drawing..  If I don't draw with a font why should it matter if
> its insides are wholesome or gutted? 

It is a live font until all references to it are dropped.

Chris Wilson, Intel Open Source Technology Centre

More information about the cairo mailing list