-
Notifications
You must be signed in to change notification settings - Fork 93
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
Skip over missing components? #16
Comments
That sounds like a major font bug to me, that we should not hide IMO. I'm On Tue, Feb 16, 2016 at 6:33 PM, Sascha Brawer notifications@github.com
behdad |
There should be a warning, at least. FWIW, ufoLib keeps the missing component and most pens out there just skip missing component (consequently it's not displayed in TruFont for instance). I'm not saying that's optimal behavior but that's how things are currently. |
@adrientetar Yeah, that was my point in the other issue thread. I think the BasePen of fonttools is the reason/root for this behavior. https://github.com/behdad/fonttools/blob/master/Lib/fontTools/pens/basePen.py#L197 because it is the reference for the segment pen protocol. |
I personally am in favor of crashing in this case. Feel free to comment/re-open if anyone disagrees and wants to continue the discussion. |
I strongly recommend that fontmake should stop building the font and output a Error instead of crashing. Look at the following traceback. It's not easy to dissect that a component is missing. So the user would not know what should be fixed in the UFO.
|
When fontmake builds from UFO, what should happen when a glyph refers to an undefined component? Apparently, other build chains are silently skipping over the problem; see metapolator/Breite#1. Instead of crashing, should fontmake perhaps emit a warning and proceed building? Although, nobody looks at warnings, so maybe crashing is fine.
The text was updated successfully, but these errors were encountered: