[HarfBuzz] Caching of glyphmetrics and cmap data

2010-09-23 Thread Keith Stribley
Hi Behdad, I've been comparing the rendering times taken by Harfbuzz-NG with different fonts and documents and as part of this experimented with caching for the freetype face and font. A lot of the time seems to be taken by calls to FreeType at the moment, specifically FT_Get_Char_Index and

Re: [HarfBuzz] Caching of glyphmetrics and cmap data

2010-09-23 Thread Behdad Esfahbod
Hi Keith, Thanks for the effort. It's widely understood that FreeType's output is supposed to be cached. Though I was hoping that the CMAP access was at least fast enough. Anyway, there are a few problems with caching these in harfbuzz proper: 1) I really really really want to keep the

Re: [HarfBuzz] Caching of glyphmetrics and cmap data

2010-09-23 Thread Keith Stribley
Hi Behdad, Thanks for your quick response. On 23/09/10 21:10, Behdad Esfahbod wrote: Another, perhaps better, option is to do the caching in hb-ft.c. I think I like that even more. In this case, there will will need to be a way to store a handle to the cache data somehow. The