Open khaledhosny opened 1 month ago
Just ' 19' to activate feature code 19 sounds fine with me.
The largest feature type currently in https://developer.apple.com/fonts/TrueType-Reference-Manual/RM09/AppendixF.html is 103, so this should work. (the feature type is uint16, so lets hope that Apple does not define more than 4-digit feature types in the future).
When doing AAT shaping, we will made a selected set of OpenType feature tags to AAT features, and we also have aat-layout APIs to get AAT features and selectors from the font, but:
For 1), may be we need the reverse of
hb_aat_layout_find_feature_mapping()
as a public API?For 2), I’m thinking may be we can provide an escape hatch where a feature tag is treated as an AAT feature type, and the value as an AAT feature selector. A buffer flag? A special feature prefix e.g. features starting with
AA
the other two bytes would be AAT feature type? Fixing this will probably make fixing 1) unnecessary.