Sascha Brawer a3f70370fe [feaLib] Add a unit test for compiling enum pos statements
Example from section 6b.ii of the OpenType Feature File specification.
2016-02-04 09:23:46 +01:00

13 lines
417 B
Plaintext

# OpenType Feature File specification, section 6.b.ii:
# [GPOS LookupType 2] Enumerating pairs
# http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
@Y_LC = [y yacute ydieresis];
@SMALL_PUNC = [comma semicolon period];
feature kern {
enum pos @Y_LC semicolon -80; # specific pairs
pos f quoteright 30; # specific pair
pos @Y_LC @SMALL_PUNC -100; # class pair
} kern;