[cairo] text measurement in perf?

Behdad Esfahbod behdad at behdad.org
Tue May 29 16:35:24 PDT 2007

On Tue, 2007-05-29 at 18:13 -0500, Federico Mena Quintero wrote:
> On Tue, 2007-05-29 at 17:25 -0400, Behdad Esfahbod wrote:
> > Seems like for both Chinese and Japanese a cache of around 2000
> > character is more than enough (same way that 256 is more than enough for
> > Western scripts).  Not sure how to fix this without regressing.  Xft has
> > a global cache size limit and a per-font one, and uses a global glyph
> > cache.  Cairo used to be similar but Keith rewrote it to use per-font
> > glyph cache.  We probably should make it adaptive.  I need to do similar
> > things in Pango too, so I'll give it some thought and come back.
> So, is the actual problem that the per-scaled-font 256-element cache is
> too small for CJK?

I believe so, but I've not tested it.  Also worth noting is that it may
not be a real problem for real scenarios.

>   Federico

"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