googlefonts / ufo2ft

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

Use fontTools to recalcAvgCharWidth & drop py37 #718

Closed madig closed 1 year ago

madig commented 1 year ago

Reduce code duplication.

Found this while trying to figure out why the value is wrong directly after a compile of a certain proprietary font.

Depends on https://github.com/fonttools/fonttools/pull/3015.

anthrotype commented 1 year ago

FYI fonttools 4.39 no longer supports python 3.7, so I had to bump the python_requires in ufo2ft's own setup.py as well to 3.8+ in order to fetch latest fonttools.

anthrotype commented 1 year ago

mtiLib-related tests will fail because https://github.com/fonttools/fonttools/issues/3021 need a new fonttools release or we update the expected test results..