RoboFont › Forums › Bugs › [1.6] Crash when template glyphs with unicode > 0xffff should be displayed
This topic contains 7 replies, has 4 voices, and was last updated by frederik 4 years, 7 months ago.
-
AuthorPosts
-
November 6, 2014 at 17:31 #6020
I have an UFO with empty glyph cells with high unicode values. RoboFont crashes when trying to open the UFO.
E.g. u1F30E u1F311
I believe the offending line is
t = unichr(self.glyph.unicode)
inglyphCellFactory.py
This is pretty bad because it worked in RF 1.5.1, but 1.5.1 doesn’t work in Yosemite …
November 6, 2014 at 17:32 #6021The console log is:
06.11.14 18:20:28,075 RoboFont[4880]: *** Terminating app due to uncaught exception 'OC_PythonException', reason: '<type 'exceptions.ValueError'>: unichr() arg not in range(0x10000) (narrow Python build)'
November 6, 2014 at 20:08 #6022He Jens
can you send me the ufo? I cannot reproduce it…
you can also try to launch RoboFont 1.6 with shift down, it will launch without installing any extension.good luck!
November 7, 2014 at 09:06 #6023Hi Frederik, here’s a demo UFO …
Meanwhile, I was able to work around the issue by editing my problematic UFO by hand.
Attachments:
You must be logged in to view attached files.February 22, 2016 at 11:57 #6228This same crash happens to me now. The moment I fixed some Shavian character Unicodes, I started getting crashes whenever it needed to lead the template glyph. 1.6, OS X El Capitan.
February 22, 2016 at 23:50 #6229
AnonymousHey, nice thing someone posted it yesterday cause I actually have the same issue right now !
I took an OTF, opened it in Robofont, deleted the characters I didn’t need to only keep the ones I wanted. Then I saved that OTF as an UFO. After that I’ve opened that UFO and deleted the content of the previous OTF to only keep the empty cells I needed. Then, I’ve setted that UFO as my default character set so everytime I make a new file it’ll open that empty custom UFO.
But everytime I make a new file in robofont, it crashes after like maximum 5 seconds. I still can open my basic UFO without any issues but as default character set it crashes robofont.
How can I fix this ?
Thanks,
Olivier
Edit : 1.6, El Capitan too.
February 24, 2016 at 14:01 #6230The crash is only caused for template glyphs that are not in the font.
You could try to open the UFO without GUI, and then actually add the glyph to the font, so no placeholder will be displayed anymore:
f = OpenFont("/path/to/the.ufo", showUI=False) for glyphname in f.lib["public.glyphOrder"]: if glyphname.startswith("u") and int(glyphname[1:], 16) > 0xffff: if not glyphname in f: f.newGlyph(glyphname) f.save()
February 25, 2016 at 23:01 #6231 -
AuthorPosts
You must be logged in to reply to this topic.