root/trunk/Documentation/TypoTechnica 2005/scripts Folder/Paulus - bricks/pen.py
| Revision 1, 237 bytes (checked in by erik, 3 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | from robofab.world import CurrentGlyph |
| 2 | myGlyph = CurrentGlyph() |
| 3 | myPen = myGlyph.getPen() |
| 4 | |
| 5 | myPen.moveTo((-10,0)) |
| 6 | myPen.lineTo((500,0)) |
| 7 | myPen.lineTo((500,50)) |
| 8 | myPen.lineTo((-10,50)) |
| 9 | myPen.lineTo((-10,0)) |
| 10 | myPen.closePath() |
| 11 | |
| 12 | myGlyph.update() |
Note: See TracBrowser for help on using the browser.
