got a formerly working script, which is not working anymore. basically it uses the RoboFab
getPen() like so:
from robofab.world import CurrentFont f = CurrentFont() newGlyph = f.newGlyph('demoDrawGlyph', clear=True) newGlyph.width = 1000 ## here is an issue ## pen = newGlyph.getPen() pen.moveTo((100, 100)) pen.lineTo((800, 100)) pen.lineTo((100, 100)) pen.closePath() newGlyph.update() f.update()
It gets me:
ImportError: No module named GSPen
When I remove the parenthesis behind
pen = newGlyph.getPen(), it runs further, but then I get:
AttributeError: 'function' object has no attribute 'moveTo'
RoboFab itself seems to be working. It nicely creates a new Glyph with the proper name and width, it is empty though and got trouble with the moveTo guys. Also i just updated the objectsGS.py from schriftgestalt.
(G1, G2, both cutting edge, Yosemite)