-
Notifications
You must be signed in to change notification settings - Fork 17
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
MathGlyph() should not add offcurves just to avoid awkward situations #127
Comments
WIP!
|
This can now get worked on, due to #235 |
Hello, I have solved it in my fontParts RGlyph._toMathGlyph() method as follows: def _toMathGlyph(self, scaleComponentTransform=True, strict=False):
"""
Subclasses may override this method.
"""
import fontMath
mathGlyph = fontMath.MathGlyph(
None, scaleComponentTransform=scaleComponentTransform, strict=strict
)
pen = mathGlyph.getPointPen()
pen.strict = strict
self.drawPoints(pen)
... I have manually set the strict attribute of the pen which is returned by the mathGlyph.getPointPen() call. All the best |
the could you make a PR? thanks |
While it might solve short term compatibility problems, it really makes it difficult to prepare outlines for variable fonts.
I propose MathGlyphPen() gets a flag, something like
addOffCurves=False
. Then line 373 can be conditional.The text was updated successfully, but these errors were encountered: