googlefonts / ufo2ft

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

Pass filters argument to compile funcs and PreProcessor #479

Closed moyogo closed 3 years ago

moyogo commented 3 years ago

Continues #466 and is needed for https://github.com/googlefonts/fontmake/pull/737.

This also adds BaseFilter.pre to specify if the filter is a pre-filter or a post-filter. It is False, for post-filter, by default, as loadFilter() puts filters in postFilters by default.

moyogo commented 3 years ago

maybe add another test in integration_test.py testing that the filters parameter is actually passed through to the preprocessor from all the compile* call sites

Good catch, some filters args were missing.