fonttools/Tests/feaLib/data/ZeroValue_PairPos_horizontal.fea
Sascha Brawer 7c67e4a63d [feaLib] Compile zero values to different formats based on context
If a zero value appears in a SinglePos statement, feaLib continues to
produce ValueRecords of format 0. But if a zero value appears in a
PairPos statement inside a horizontal compilation context, feaLib now
produces ValueRecords of format 4. Likewise, if a zero value appears
in a PairPos statement inside a vertical compilation context, feaLib
now produces ValueRecords of format 8.

The OpenType Feature Syntax specification is completely silent about this,
but the new behavior matches that of makeotf.

https://github.com/fonttools/fonttools/issues/633
2017-02-16 15:37:40 +01:00

10 lines
287 B
Plaintext

# For PairPos statements in horizontal compilation contexts,
# zero values should get compiled to ValueRecord format 4.
# https://github.com/fonttools/fonttools/issues/633
feature kern {
pos A 0 A 0;
pos A 0 B <0 0 0 0>;
pos B <0 0 0 0> A 0;
pos B <0 0 0 0> B <0 0 0 0>;
} kern;