-
Notifications
You must be signed in to change notification settings - Fork 51
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
glyphsLib fails to build UFOs from specific .glyphs file #282
Comments
verticallineabovecomb has some phantom layers. |
Ah! I copied that glyph from a different font; I see it, too, now. I guess testing for phantom layers in the offended method and printing a warning will do the job? Will have a closer look. |
I had the same problem. It is because I copied some glyphs from another font with more masters and the extra layers got preserved. It is not just layers without names, but also others which should not be there. This Glyphs.app script helps to clean things up.
|
@anthrotype I'm thinking about checking for phantom layers somewhere in UFOBuilder, maybe ::masters(), and just log a warning and skip them, since it's ufoLib that chokes. Glyphs seems to just ignore them. I'll send a pull request. Tell me if this should be handled differently. Not sure if it's wise to keep them for round-trip constness, since I think they're clearly data corruption the user should know about. Should it raise an error instead? |
Sounds good, thanks |
Drop and warn is ok by me |
GlyphsLib should only care about layers that have ‘layerIDs’ that are also a ‘Master.id’. Only if you plan to support brace and bracket layers, you need to look in the other layers, too. |
@schriftgestalt Do you see (associated) layers that do not point to an existing master ID as data corruption? See https://forum.glyphsapp.com/t/glyphs-should-clean-up-or-prune-phantom-layers-when-copying-glyphs-from-other-fonts/7576/1 I assume associated layers are these non-bold layers in Glyphs associated with the master layer. |
should be fixed by #291 |
fontmake -g Cantarell.glyphs -o otf
The same happens with
The text was updated successfully, but these errors were encountered: