[HarfBuzz] Transparent, lock-free, shape plan caching

Behdad Esfahbod behdad at behdad.org
Fri Jul 27 13:26:57 PDT 2012


On 07/27/2012 01:24 PM, Grigori Goronzy wrote:
> On 07/27/2012 07:05 PM, Behdad Esfahbod wrote:
>> Would be nice to see numbers from Firefox / Chrome.  This should be more of a
>> win for Firefox since it shapes word at a time.
> 
> A word at a time? Hmm, how does that really work? Does it simply split
> up the text at spacing characters, determine script for each word and
> invoke the shaper for it?

Yes.

> And why is it doing it like that

To cache the shaping results and better reuse the cached results.

It has its own problems though:

  https://bugzilla.mozilla.org/show_bug.cgi?id=761442

All other major browsers disable OpenType processing for "simple" scripts by
default.

behdad



More information about the HarfBuzz mailing list