-
Notifications
You must be signed in to change notification settings - Fork 168
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
Stemhist: Unhandled case for first and last points in outline #715
Comments
This seems to come from https://github.com/adobe-type-tools/afdko/blob/1d4f78d459dbcfd57f03496cb9509c37d6e09372/python/afdko/ufotools.py – possibly you found a bug. |
Hi Bahman, thank you for sending over the UFO file. A workaround: |
A note for |
Thank you Frank for finding the issue. Maybe @schriftgestalt should see this issue, the UFO was exported from the Glyphs app. |
I try to not mess with starting points. Otherwise people complain about unnecessary differences. As long as it is in the spec I tend to keep it like that. |
I don’t think you fully read through the issue here Georg. Glyphs apparently is able to set start points on offcurve points, which literally is “messing with starting points” |
The start point happens to be like that. And Glyphs just kept it. |
The UFO file itself is point structure-agnostic, meaning it is OK to start with an off-curve point.
|
Can some one try this with |
works |
@khaledhosny do you know if some sort of point reordering happens behind the scenes to get this to work in psstemhist? |
The code in question was replaced by a BezPen, and I vaguely remember FontTools pens taking care of re-ordering the points. |
I'll have a look. Thanks |
I'm running stemhist on a UFO file which produces an output when it encounters a composite and it stops.
I can't make out what this means:
Unhandled case for first and last points in outline
and also there is no infomation anywhere to describe it. The wierd thing is that there is no such point structure if I search it through all the ufo glyph files. Could you direct me on what this means and how can it be fixed?The text was updated successfully, but these errors were encountered: