UI bug when using robofab.insertGlyph

RoboFont Forums Bugs UI bug when using robofab.insertGlyph

This topic contains 1 reply, has 2 voices, and was last updated by  frederik 8 years, 9 months ago.

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

    butterick
    Participant

    This script will work if you are viewing “All Glyphs”. What it’s supposed to do is copy the A glyph into the Z slot. But if you display only the UC characters, then run it:

    import robofab.world
    f = robofab.world.CurrentFont()
    g = f["A"]
    f.removeGlyph("Z")
    f.insertGlyph(g, "Z")
    f.update()
    

    Instead what you get is an error:

    File “lib/fontObjects/robofabWrapper.pyc”, line 2447, in insertGlyph
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/defconAppKit/controls/glyphCollectionView.py”, line 485, in insert
    File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/vanilla/vanillaList.py”, line 900, in insert
    IndexError: NSRangeException – Index 263 out of bounds of [0…24]

    #3598

    frederik
    Keymaster

    solved in the next version :)

    thanks for reporting

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

You must be logged in to reply to this topic.