Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feaLib] add support for Character Variants FeatureParams #860

Closed
anthrotype opened this issue Feb 24, 2017 · 1 comment
Closed

[feaLib] add support for Character Variants FeatureParams #860

anthrotype opened this issue Feb 24, 2017 · 1 comment

Comments

@anthrotype
Copy link
Member

feaLib currently supports featureNames tags to add FeatureParams tables to stylistic sets (ssXX) features.

To support Feature Parameters in Character Variants features (cvXX) feaLib should add support for "cvParameters":
http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html#8.d

Also see the definition from OT spec under Tag: 'cv01' - 'cv99':
https://www.microsoft.com/typography/otspec/features_ae.htm

And in otData.py:

('FeatureParamsCharacterVariants', [
('uint16', 'Format', None, None, 'Set to 0.'),
('NameID', 'FeatUILabelNameID', None, None, 'Feature UI label NameID.'),
('NameID', 'FeatUITooltipTextNameID', None, None, 'Feature UI tooltip text NameID.'),
('NameID', 'SampleTextNameID', None, None, 'Sample text NameID.'),
('uint16', 'NumNamedParameters', None, None, 'Number of named parameters.'),
('NameID', 'FirstParamUILabelNameID', None, None, 'First NameID of UI feature parameters.'),
('uint16', 'CharCount', None, None, 'Count of characters this feature provides glyph variants for.'),
('uint24', 'Character', 'CharCount', 0, 'Unicode characters for which this feature provides glyph variants.'),
]),

@anthrotype
Copy link
Member Author

Fixed by #1169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant