Open benkiel opened 1 year ago
the anchor.name
attribute is optional according the spec, so is anchor.color
, this could also be changed to anchor.get("color")
Agree, changed. Still not going to solve @LettError's problem, unfortunately
But look how toMathGlyph
always sets name
and color
:
I don't quite understand what "the spec" (which spec?) has to do with this.
@justvanrossum UFO Spec: https://unifiedfontobject.org/versions/ufo3/glyphs/glif/#anchor
Would like to test, but how do I get this code to run locally?
UFO Spec
Perhaps I'm nitpicking, but what I mean is, this is just an object implementation, and it can decide by itself whether it demands those attributes to exist or not. Perhaps it requires the "missing" attributes to be substituted by None. The spec specifies the format, not how objects should be implemented.
This should account for getting a value that doesn't exist in a math glyph, addressing #678