Skip to content

glyph.fromMathGlyph() confused by defcon.Color object #850

@LettError

Description

@LettError

FontParts.Glyph.fromMathGlyph expects only tuples for guideline colors. But in practice I encounter Defcon color objects. These color objects are pretty much immutable, but they come from somewhere.

Is there a way that we can check for the type here in fontParts, in fromMathGlyph, and then extract the values? This would require fontParts to know something about defcon objects, I'm sure there are arguments against that.

What I would rather not have to do is to look at all the possible entry points where a guideline is added to a MathGlyph.

Alternatively, I propose this checks if it is a tuple, and if it is not, just discard the color info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions