-
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
fontmake fails compiling FiraCode #445
Comments
Interesting, i can take a look tomorrow. |
Is there a chance this gets fixed in the near future? |
I just had a look and got the same exception traceback as above. here's the relevant quote from the Adobe Feature File spec:
https://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html#2.f.i So, only one backslash should be required for escaping a glyph name and distinguish it from a same-named keyword. But looking at the text of FiraCode.glyphs I see the features contains glyph names preceded by two backslashes. I think this is a glyphsLib bug. Within quoted strings in an ascii plist file (usde by the .glyphs format), the backslash is used as an escape character to write non-ascii characters. The backslash literal is also escaped with an additional backslash. The glyphsLib writer correctly dumps these I'll file a bug report over there. I can't guarantee I will be able to fix it immediately as I'm attending a type design conference this week. |
reproduces this fontmake bug: googlefonts/fontmake#445 the writer correctly escapes literal backslashes (doubling them up), but the parser does not un-escape them.
this fixes googlefonts/fontmake#445 when backslashes occur within normal quoted string values. For the GSNode.userData we need further escaping/unescaping (fixed in subsequent commits). NOTE: the _trim_value method returns a string unmodified if it is not within quotes, because escape sequences can only occur inside quoted strings
reproduces this fontmake bug: googlefonts/fontmake#445 the writer correctly escapes literal backslashes (doubling them up), but the parser does not un-escape them.
@fabiangreffrath we now have a fix in glyphsLib master branch, I will update fontmake as soon as we tag a new glyphsLib release. |
Great, thanks! |
this should be fixed as of glyphsLib 3.1.1 |
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900777.
When compiling https://github.com/tonsky/FiraCode, the following error occurs:
I dug into this a bit and I believe fontmake is tripping up on this feature source:
Which is found in the Glyphs source. Is this valid OT feature syntax? Should these double backslashes be ignored?
The text was updated successfully, but these errors were encountered: