go-text / typesetting

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

[shaping] fix handling of Inherited script in Segmenter.Split #128

Closed benoitkugler closed 6 months ago

benoitkugler commented 6 months ago

In Segmenter.Split, Inherited script must be handled like Common, to avoid creating more runs than required (which in turns does not allow harfbuzz to properly shape the whole text). Fixes #127