[cairo] text measurement in perf?

Behdad Esfahbod behdad at behdad.org
Thu May 31 16:46:16 PDT 2007


On Tue, 2007-05-29 at 19:32 -0500, Federico Mena Quintero wrote:
> 
> Also, shouldn't any kind of caching be done in Pango rather than in
> Cairo or below?  Pango is the layer that has the most information
> about
> how data is being used; AFAIK Cairo only has 
> "gimme_metrics(font, glyph_no)".

pangocairo has a glyph metrics cache already, but that's limited to 256
entries too.  It doesn't help that much enlarging just that one though
as for rendering one will hit (or should I say miss?) cairo's cache
anyway.


-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list