Skip to content

Proposal for a compact way to translate a mathGlyph #327

Description

@LettError

I've looked for ways to make mathGlyphs easier to translate. Adding support for transformation matrices would be nice but it would be quite complex.

What about this notation to move all the geometry in a glyph by (100, 200)

a = glyph.toMathGlyph()
b = a + (100, 200)

This would be analogous to the support __mul__ has for anisotropic factors. __add__ and __sub__ can check if the object is a glyph or a tuple and then call _processMathOne or a new _processTranslate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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