googlefonts / ufo2ft

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

Split mark and base kerning pairs #713

Closed madig closed 1 year ago

madig commented 1 year ago

Split kerning pairs of bases against marks into

  1. base-to-base only pairs, for the base lookup
  2. mark-to-base, base-to-mark and mark-to-mark pairs, for the marks lookup

which should preserve the semantics of kerning exceptions (pairs modifying the effect of other pairs).

Closes https://github.com/googlefonts/ufo2ft/issues/706.

Validated with https://github.com/daltonmaag/kerning-validator/tree/16927fc10b1f4d83d0f2b029b4c1b16a8d5c7efe. It fixes the problems in Noto Serif Tamil.