googlefonts / fontc

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

[fea-rs] Allow negative values in LigatureCaretByPos #843

Closed cmyr closed 1 month ago

cmyr commented 1 month ago

When validating ligature caret statements I had the logic reversed, and was disallowing negative positions (which are fine) but allowing negative indices (which are not).

The fix is simple, and this adds some test coverage for this case.