When reading a .glif, the glyph.height is set to zero if it is not defined in the file. That makes it impossible to distinguish between manually defined zero height glyphs and just default/undefined ones. Would it be better to set glyph.height to None if not defined in the file?
I came across this when round tripping .glyphs > .ufo > .glyphs as the resulting .glyphs files have vertwidth = 0 for all glyphs. That is clearly wrong.
When reading a .glif, the
glyph.heightis set to zero if it is not defined in the file. That makes it impossible to distinguish between manually defined zero height glyphs and just default/undefined ones. Would it be better to setglyph.heighttoNoneif not defined in the file?I came across this when round tripping .glyphs > .ufo > .glyphs as the resulting .glyphs files have
vertwidth = 0for all glyphs. That is clearly wrong.