mhosken 7a0c5e1ca2 Add fea generation support (#776)
* First round of adding fea output

No format tests but all test files give reasonable output so far.

* Get existing tests working

* Initial tests that work for fea2fea

* Get more tests working

Bug fixes and re-layout some tests to compare with fea2fea output.
Ranges and name parameters are not optimised yet.

* Handle vertical default values in fea2fea

* Hide fea2fea differences in lookupflags

* No reduce() in py3 so use a for loop
2016-12-20 11:10:29 +01:00

22 lines
610 B
Plaintext

# OpenType Feature File specification, section 6.h.ii:
# Specifying Contextual Positioning with explicit lookup references
# http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
languagesystem DFLT dflt;
markClass [acute grave] <anchor 150 -10> @ALL_MARKS;
lookup CNTXT_PAIR_POS {
pos T o -10;
pos T c -12;
} CNTXT_PAIR_POS;
lookup CNTXT_MARK_TO_BASE {
pos base o <anchor 250 450> mark @ALL_MARKS;
pos base c <anchor 250 450> mark @ALL_MARKS;
} CNTXT_MARK_TO_BASE;
feature test {
pos T' lookup CNTXT_PAIR_POS [o c]' @ALL_MARKS' lookup CNTXT_MARK_TO_BASE;
} test;