From 49b5521f2edcbf91651cae78ef3233bf16bb48d2 Mon Sep 17 00:00:00 2001 From: jvr Date: Fri, 5 Sep 2003 14:18:26 +0000 Subject: [PATCH] ensure that the current point is always set correctly git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@446 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/pens/basePen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/pens/basePen.py b/Lib/fontTools/pens/basePen.py index ebcfdd872..c3e23aa7f 100644 --- a/Lib/fontTools/pens/basePen.py +++ b/Lib/fontTools/pens/basePen.py @@ -53,7 +53,7 @@ class AbstractPen: The conversion algorithm used for n>2 is inspired by NURB splines, and is conceptually equivalent to the TrueType "implied - points" principle. See also qCurve(). + points" principle. See also qCurveTo(). """ raise NotImplementedError @@ -185,11 +185,12 @@ class BasePen(AbstractPen): pt3 = (0.5 * (pt2[0] + temp[0]), 0.5 * (pt2[1] + temp[1])) self._curveToOne(pt1, pt2, pt3) + self.__currentPoint = pt3 pt1, pt2, pt3 = temp, None, None self._curveToOne(pt1, points[-2], points[-1]) self.__currentPoint = points[-1] elif n == 1: - self._qCurveOne(*points) + self.qCurveTo(*points) elif n == 0: self.lineTo(points[0]) else: