googlefonts / ufo2ft

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

COLR and CPAL tables are not build for variable-ttf fonts #537

Closed khaledhosny closed 3 years ago

khaledhosny commented 3 years ago

They are built for variable-cff2 and static ttf and otf instances.

khaledhosny commented 3 years ago

It seems that OTFPreProcessor, TTFPreProcessor, both call _init_explode_color_layer_glyphs_filter() in their initDefaultFilters(), but TTFInterpolatablePreProcessor doesn’t (it actually does not have an initDefaultFilters().

Not sure if this intentional, but I’m also not sure where to call _init_explode_color_layer_glyphs_filter() in this case.