Cannot generate OTF from UFOCentral converted UFO

RoboFont Forums Help / General Cannot generate OTF from UFOCentral converted UFO

This topic contains 1 reply, has 1 voice, and was last updated by  javburg 5 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6038

    javburg
    Member

    Hi,
    I’m having trouble generating an OTF from an ufo generated with UFOCentral. The ufo works perfectly in Robofont, but as soon as I try to generate an otf I get this output:

    Traceback (most recent call last):
    File “lib/fontObjects/doodleFontCompiler/baseCompiler.pyc”, line 281, in compile
    File “ufo2fdk/makeotfParts.pyc”, line 64, in compile
    File “ufo2fdk/makeotfParts.pyc”, line 79, in setupFile_outlineSource
    File “ufo2fdk/outlineOTF.pyc”, line 80, in compile
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/ttLib/__init__.py”, line 200, in save
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/ttLib/__init__.py”, line 596, in _writeTable
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/ttLib/__init__.py”, line 608, in getTableData
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/ttLib/tables/C_F_F_.py”, line 20, in compile
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/cffLib.py”, line 77, in compile
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/cffLib.py”, line 161, in toFile
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/cffLib.py”, line 226, in toFile
    UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\u2013′ in position 3: ordinal not in range(128)

    I’ve deleted the endash (u2013) glyph and tried to generate it again, but it still does not want to work.
    Any thoughts on how to solve this?
    Jaco

    #6039

    javburg
    Member

    I’ve found a work around for the issue. I generated a base ufo (UFO Central) without font info, kerning etc. and with this file I could generate the otf. So I generated a new ufo with kerning and groups selected and then I added these to the base ufo and now the file works properly. I’m figuring there was an issue with the lib or font info file.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.