This adds a nice mechanism for testing our mark generation, based on layout-normalizer.
Basically this provides a builder where you can set up some set of glyphs + anchors + GDEF categories + user FEA, and then what feature code gets generated, in a normalized textual representation.
Getting this to work required a few tweaks in various places; I made it so that layout-normalizer can work only with the specific tables (instead of requiring a full font) and I also tweaked the MarkLookupBuilder so that our testing code more closely matches what we do during regular compilation.
This adds a nice mechanism for testing our mark generation, based on
layout-normalizer
.Basically this provides a builder where you can set up some set of glyphs + anchors + GDEF categories + user FEA, and then what feature code gets generated, in a normalized textual representation.
Getting this to work required a few tweaks in various places; I made it so that
layout-normalizer
can work only with the specific tables (instead of requiring a full font) and I also tweaked theMarkLookupBuilder
so that our testing code more closely matches what we do during regular compilation.