fonttools / fontbakery

🧁 A font quality assurance tool for everyone
https://fontbakery.readthedocs.io
Apache License 2.0
534 stars 99 forks source link

Speed up expected_font_names #4765

Closed simoncozens closed 2 weeks ago

simoncozens commented 2 weeks ago

Description

In expected_font_names we do a deep copy of the font because we're going to modify it and we don't want to mess up further tests. But for big fonts this is very slow, and we use expected_font_names a few times. We don't need glyf and gvar and GPOS and everything else to work out what names the font should have. Instead, let's only copy the tables that we need to run build_name_table.

Checklist