You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The handling of color layers was supposed to be applied only when minimal=True (the thinking back then was that it is a ufo2ft-specefic feature so it was enabled only when minimal mode is enabled which is used when building UFOs with ufo2ft), but it seems that it is now partially applied when minimal=False:
$ glyphs2ufo ColorComponents.glyphs
Bad Color Bold: Glyph A, layer color.0: Duplicate glyph layer name
Bad Color Thin: Glyph A, layer color.0: Duplicate glyph layer name
Bad Color Thin: Glyph Aacute, layer color.0: Duplicate glyph layer name
Bad Color Bold: Glyph Aacute, layer color.0: Duplicate glyph layer name
And no warnings with:
$ glyphs2ufo --minimal ColorComponents.glyphs
I suggest we enable the handling of color layers unconditionally, since this seems to be a source of problems (e.g. googlefonts/gftools#740).
as seen in this example:
Using glyphs2ufo produces this output:
and this layer mapping (it appends a '#' to make the name unique):
So it is not sufficient to use GSLayer.name as layer names in the ufos.
The text was updated successfully, but these errors were encountered: