googlefonts / ufo2ft

A bridge from UFOs to FontTools objects (and therefore, OTFs and TTFs).
MIT License
151 stars 43 forks source link

Restore old KernFeatureWriter from v2.30.0 into a separate module #697

Closed anthrotype closed 1 year ago

anthrotype commented 1 year ago

I think it's a good idea to keep the old KernFeatureWriter around for a little bit, so that one can test both the new (split by script) and old (split by script direction) alongside one another and compare the results and choose to continue using the old one if need be.

I simply copied the module and test files from ufo2ft at v2.30.0 tagged commit and renamed the module kernFeautureWriter2 for lack of better name..

On can opt-in to use this by setting the relevant lib key or passing the featureWriters compile option.