googlefonts / fb-variable-spacing

Tools to add a spacing axis to variable fonts.
MIT License
0 stars 1 forks source link

Performance of code to keep components in place #4

Open gferreira opened 1 year ago

gferreira commented 1 year ago

the code used to keep components in place after changes to the left margin of base glyphs has been rewritten using the algorithm described by @dberlow (thanks!).

the new version produces 100% correct results in all tests made so far, while the previous version had a bug which affected glyphs with multiple versions of the same component.

however, the new version is a lot slower.

TO DO: