googlefonts / glyphsLib

A bridge from Glyphs source files (.glyphs) to UFOs
Apache License 2.0
178 stars 51 forks source link

Do not set Unicode values for each layer in a color glyph. #939

Closed bramstein closed 10 months ago

bramstein commented 10 months ago

As described in #937, the current color layer implementation writes unicode values for each layer in a color glyph. Recent fontmake fixes now treat this as an error which prevents color fonts from building.

This changes color_layers.py to set the Unicode mapping on each layer-glyph in the color glyph to an empty list. It does this in color_layers.py rather than modifying the builder.to_ufo_glyph method because it seems highly specific to color layer-glyphs.

Fixes #937.