go-text / typesetting

High quality text shaping in pure Go.
Other
88 stars 11 forks source link

[harfbuzz] reuse otApplyContext instead of allocating a new one #106

Closed benoitkugler closed 7 months ago

benoitkugler commented 7 months ago

This makes Buffer more memory efficient when reusing the same font, since the otMap is stored on the buffer planCache .