-
Notifications
You must be signed in to change notification settings - Fork 44
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
anchor and guideline may not have specific keys in dict #678
Comments
@LettError Must be, as |
But, maybe we should change this up to check if there is a name, looking into it |
It's looking for a name in a dict? |
It's looking for the anchor name from the math glyph object. I think that changing it to a |
But Erik mentioned that the anchors do have names, so something appears off. Not failing when there's no name may not solve this actual problem. |
@justvanrossum right, the above solves the first issue, but yes, not sure about what |
Looking through all the code, I'm not seeing how that |
But, yes, @justvanrossum, you're right, the above solves the key error for the optional |
The traceback shows this is not the case, though. Did you find out you have anchors without a name after all? If not, I would suggest looking into that first. If yes, then #679 is likely the right solution. I feel the analysis of this bug is incomplete, and therefore the proposed fix could be premature. Especially since |
Analysis of the bug is indeed not complete, it was not possible to make a neatly isolated testable thing. However, some progress. Note 1: maybe I misreported Note 2: There definitely is an issue with New issue 1: Changes made in this branch: fontParts/Lib/fontParts/base/glyph.py Line 1709 in b4cb042
MathGlyph guidelines, no names, and only 1 with a color.
Running the code in this branch, with these guidelines gives a new traceback centered on color:
So, the name issues appear gone at least :) |
Ah, that error is the normalizer being grumpy, we can fix that! |
I guess the thing to do in the normalizer would be to transform the |
Ok, that's weird as the normalizer allows |
After some mathGlyphing around in RF Version 4.4b (build 2212022233) I end up here as part of a
fromMathGlyph()
:fontParts/Lib/fontParts/base/glyph.py
Line 1697 in f5250dc
Mysteriously, the anchors of the mathGlyph appear to have names:
Maybe something in RF's
fontPartsWrappers
?The text was updated successfully, but these errors were encountered: