googlefonts / fontc

Where in we pursue oxidizing (context: https://github.com/googlefonts/oxidize) fontmake.
Apache License 2.0
62 stars 10 forks source link

Mark testing harness #797

Closed cmyr closed 1 month ago

cmyr commented 1 month ago

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.