How to set x,y position for a BezierPath ?
-
Hi,
I'm working on a script for Glyphs to build a Character set with Drawbot Extension. I'm using the Glyph API to extract the BezierPath of my letters.
I would like to set the x,y position of the Path without using translate
Here is my code :
from GlyphsApp import * f = Glyphs.font # frontmost font m = f.selectedFontMaster # active master paperSize = 'A4Landscape' newPage(paperSize) scale (0.2, 0.2) path = f.glyphs["A"].layers[m.id].completeBezierPath drawPath(path)
-
I dont know glyhps but I would encourage you to use a
BezierPath
object instead see https://www.drawbot.com/content/shapes/bezierPath.html#drawBot.context.baseContext.BezierPath.translate