Five digit unicode values ?



  • I "accidentally" placed the symbol for a musical note on the glyph u1D160 (unicode: 1D160) of the "Musical Symbols" unicode-set instead of the glyph "musicalnote" (unicode: 266A).

    Now that is a five digit unicode value.

    If selected in the font collection the space center does not open.

    The output window says:

    Traceback (most recent call last):
      File "lib/doodleDocument.pyc", line 635, in openSpaceCenter_
      File "lib/doodleSpaceWindow.pyc", line 48, in OpenSpaceCenterDocument
      File "lib/doodleSpaceWindow.pyc", line 73, in __init__
      File "lib/UI/spaceCenter/__init__.pyc", line 125, in __init__
      File "lib/UI/spaceCenter/__init__.pyc", line 291, in _glyphNameToString
    ValueError: unichr() arg not in range(0x10000) (narrow Python build)
    Traceback (most recent call last):
      File "lib/doodleDelegate.pyc", line 81, in sendEvent_
      File "lib/doodleDocument.pyc", line 635, in openSpaceCenter_
      File "lib/doodleSpaceWindow.pyc", line 48, in OpenSpaceCenterDocument
      File "lib/doodleSpaceWindow.pyc", line 73, in __init__
      File "lib/UI/spaceCenter/__init__.pyc", line 125, in __init__
      File "lib/UI/spaceCenter/__init__.pyc", line 291, in _glyphNameToString
    ValueError: unichr() arg not in range(0x10000) (narrow Python build)
    

    Is Python not able to handle five digit unicode values?


  • admin

    yeah, python and unicode :)

    In the next release RoboFont will check if an unicode value is bigger than 0x10000 (65536) to open a Space Center.