Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for a compact way to translate a mathGlyph #327

Open
LettError opened this issue Nov 27, 2024 · 0 comments
Open

Proposal for a compact way to translate a mathGlyph #327

LettError opened this issue Nov 27, 2024 · 0 comments

Comments

@LettError
Copy link
Member

LettError commented Nov 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant