googlefonts / ufo2ft

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

avoid reloading font unconditionally in postProcessor #671

Closed anthrotype closed 1 year ago

anthrotype commented 1 year ago

Fixes https://github.com/googlefonts/ufo2ft/issues/485

For the tests to pass we need to release fonttools with https://github.com/fonttools/fonttools/pull/2860

anthrotype commented 1 year ago

I hope this will also fix another issue related to building fonts with huge glyph set like Source Han Sans, in which compiling post format 2 raises overflow error, but the compilation step is unnecessary and can be delayed at the very end after the postcript glyph names have been dropped (post format 3), like I do in this PR.

https://github.com/googlefonts/ufo2ft/issues/462#issuecomment-781582672 https://github.com/googlefonts/fontmake/issues/939

/cc @punchcutter