[cairo] text measurement in perf?

Federico Mena Quintero federico at ximian.com
Tue May 29 16:13:29 PDT 2007


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?

  Federico



More information about the cairo mailing list