summaryrefslogtreecommitdiff
path: root/misc/pylib/robofab/pens/quartzPen.py
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-09-03 22:55:49 +0300
committerRasmus Andersson <rasmus@notion.se>2018-09-03 22:55:49 +0300
commitc833e252c925e8dd68108660710ca835d95daa6f (patch)
tree6b2e28264ed45efd7f054e453b622098d0d875b8 /misc/pylib/robofab/pens/quartzPen.py
parent8c1a4c181ef12000179dfec541f1af87e9b03122 (diff)
downloadinter-c833e252c925e8dd68108660710ca835d95daa6f.tar.xz
Major overhaul, moving from UFO2 to Glyphs and UFO3, plus a brand new and much simpler fontbuild
Diffstat (limited to 'misc/pylib/robofab/pens/quartzPen.py')
-rw-r--r--misc/pylib/robofab/pens/quartzPen.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/misc/pylib/robofab/pens/quartzPen.py b/misc/pylib/robofab/pens/quartzPen.py
deleted file mode 100644
index dd1947ccf..000000000
--- a/misc/pylib/robofab/pens/quartzPen.py
+++ /dev/null
@@ -1,21 +0,0 @@
-from fontTools.pens.basePen import BasePen
-
-class QuartzPen(BasePen):
-
- """Pen to draw onto a Quartz drawing context (Carbon.CG)."""
-
- def __init__(self, glyphSet, quartzContext):
- BasePen.__init__(self, glyphSet)
- self._context = quartzContext
-
- def _moveTo(self, (x, y)):
- self._context.CGContextMoveToPoint(x, y)
-
- def _lineTo(self, (x, y)):
- self._context.CGContextAddLineToPoint(x, y)
-
- def _curveToOne(self, (x1, y1), (x2, y2), (x3, y3)):
- self._context.CGContextAddCurveToPoint(x1, y1, x2, y2, x3, y3)
-
- def _closePath(self):
- self._context.closePath()