go-text / typesetting

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

Simplify harfbuzz language parsing #66

Closed benoitkugler closed 1 year ago

benoitkugler commented 1 year ago

As a follow up of #65, this PR extracts and simplifies a bit the processing of language private tags.

Also, I've hidden the newOTTagsFromScriptAndLanguage, since it is mainly internal to the Harfbuzz implementation. (Note that we may want to use this function to check if a particular feature is supported for a particular language/script pair, but this is not for today, and we would probably export a different API.)