[cairo] text measurement in perf?
mozbugbox at yahoo.com.au
Wed May 30 00:02:11 PDT 2007
On 2007-05-29, Behdad Esfahbod <behdad at behdad.org> 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.
2 stage cache. 1st 256, 2nd 2048.
More information about the cairo