[cairo] font scaling

Phil Blundell pb at nexus.co.uk
Sun Nov 14 14:16:41 PST 2004


On Sun, 2004-11-14 at 13:18 -0500, Carl Worth wrote:
> On Sun, 14 Nov 2004 15:48:40 +0000, Phil Blundell wrote:
> > I'm assuming this behaviour is not deliberate.  The attached patch seems
> > to clear it up for me.
> 
> Correct, and the patch looks fine. It's almost identical to what I
> committed yesterday, (selecting the same font twice also didn't clear a
> reference count on the font).

Aha, great.  Thanks for fixing this.

> That's a bug of course. If the caches are going to decide that things
> are too big to be cached, then the objects still need to be created and
> not cached.

Right.

I also ran into one other assertion in cairo_cache.c::_entry_destroy().
I think that:

        assert(cache->used_memory > entry->memory);

should probably be testing for ">=", otherwise you can't destroy the
last item in the cache.

p.



More information about the cairo mailing list