fonttools/Tests/feaLib/data/spec8d.fea

58 lines
2.5 KiB
Plaintext
Raw Normal View History

2018-02-05 23:38:22 -08:00
# The cvParameters block must precede any of the rules in the feature.
# The ParamUILabelNameID entry may be omitted or repeated as often as needed.
# The other NameID types may be omitted, or defined only once.
# The NameID entries must be specified in the order listed below.
# Following the set of NameID entries, a series of 24-bit Unicode values may be specified.
# These provide Unicode values for the base glyphs referenced by the feature.
# The developer may specify none, some, or all of the Unicode values for the base glyphs.
# The Unicode value may be written with either decimal or hexadecimal notation.
# The value must be preceded by '0x' if it is a hexadecimal value.
# NOTE: The ParamUILabelNameID entries are used when one base glyph is mapped to more than
# one variant; the font designer may then specify one ParamUILabelNameID for each variant, in
# order to uniquely describe that variant. If any ParamUILabelNameID entries are specified,
# the number of ParamUILabelNameID entries must match the number of variants for each base
# glyph. If the Character Variant feature specifies more than one base glyph, then the set
# of NameID entries in the parameter block will be used for each base glyph and its variants.
feature cv01 {
cvParameters {
FeatUILabelNameID {
2018-02-28 22:23:16 -08:00
#test-fea2fea: name "uilabel simple a";
2018-02-05 23:38:22 -08:00
name 3 1 0x0409 "uilabel simple a"; # English US
2018-02-28 22:23:16 -08:00
#test-fea2fea: name 1 "uilabel simple a";
2018-02-05 23:38:22 -08:00
name 1 0 0 "uilabel simple a"; # Mac English
};
FeatUITooltipTextNameID {
2018-02-28 22:23:16 -08:00
#test-fea2fea: name "tool tip simple a";
2018-02-05 23:38:22 -08:00
name 3 1 0x0409 "tool tip simple a"; # English US
2018-02-28 22:23:16 -08:00
#test-fea2fea: name 1 "tool tip simple a";
2018-02-05 23:38:22 -08:00
name 1 0 0 "tool tip simple a"; # Mac English
};
SampleTextNameID {
2018-02-28 22:23:16 -08:00
#test-fea2fea: name "sample text simple a";
2018-02-05 23:38:22 -08:00
name 3 1 0x0409 "sample text simple a"; # English US
2018-02-28 22:23:16 -08:00
#test-fea2fea: name 1 "sample text simple a";
2018-02-05 23:38:22 -08:00
name 1 0 0 "sample text simple a"; # Mac English
};
ParamUILabelNameID {
2018-02-28 22:23:16 -08:00
#test-fea2fea: name "param1 text simple a";
2018-02-05 23:38:22 -08:00
name 3 1 0x0409 "param1 text simple a"; # English US
2018-02-28 22:23:16 -08:00
#test-fea2fea: name 1 "param1 text simple a";
2018-02-05 23:38:22 -08:00
name 1 0 0 "param1 text simple a"; # Mac English
};
ParamUILabelNameID {
2018-02-28 22:23:16 -08:00
#test-fea2fea: name "param2 text simple a";
2018-02-05 23:38:22 -08:00
name 3 1 0x0409 "param2 text simple a"; # English US
2018-02-28 22:23:16 -08:00
#test-fea2fea: name 1 "param2 text simple a";
2018-02-05 23:38:22 -08:00
name 1 0 0 "param2 text simple a"; # Mac English
};
2018-02-28 22:23:16 -08:00
#test-fea2fea: Character 0xa;
2018-02-05 23:38:22 -08:00
Character 10;
2018-02-28 22:23:16 -08:00
#test-fea2fea: Character 0x5dde;
2018-02-05 23:38:22 -08:00
Character 0x5DDE;
};
# --- rules for this feature ---
sub A by B;
} cv01;