googlefonts / ufo2ft

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

Support sparse masters in kernFeatureWriter #859

Closed simoncozens closed 3 months ago

simoncozens commented 4 months ago

Currently the part of the kern feature writer which tests if a mark is spacing or non-spacing checks for source.font[mark].width in all sources of a variable font. If the variable font has sparse masters, the glyph may not appear in some of them, and the kern feature writer crashes.