This change (for #53) leverages the fact that the HarfbuzzShaper operates sequentially, so that modifying a harbuzz.Font is safe.
(It wouldn't be the case with concurrent use, since a same *font.Font may be used with different user provided settings).
This change (for #53) leverages the fact that the
HarfbuzzShaper
operates sequentially, so that modifying aharbuzz.Font
is safe. (It wouldn't be the case with concurrent use, since a same*font.Font
may be used with different user provided settings).A test/benchmark would be welcomed :)