googlefonts / ufo2ft

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

Fix variable GDEF building #821

Closed simoncozens closed 7 months ago

simoncozens commented 7 months ago

This is an obscure one. If you're building a variable font and a glyph has its ligature carets at the same position across masters, the caret value will be collapsed (by collapse_varscalar inside of getAnchor) into an int, and the current sort function won't work. We need a sort function which can sort both variable and static scalars.

anthrotype commented 7 months ago

+1 for small test if not too much trouble, thanks