[interpolatable] Change RecordingPen.draw to replay
This commit is contained in:
parent
55e529f7a3
commit
f0584a8507
@ -65,7 +65,7 @@ class RecordingNoComponentsPen(BasePen):
|
|||||||
def _endPath(self):
|
def _endPath(self):
|
||||||
self.value.append(('endPath', ()))
|
self.value.append(('endPath', ()))
|
||||||
|
|
||||||
def draw(self, pen):
|
def replay(self, pen):
|
||||||
for operator,operands in self.value:
|
for operator,operands in self.value:
|
||||||
getattr(pen, operator)(*operands)
|
getattr(pen, operator)(*operands)
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ def test(glyphsets, glyphs=None, names=None):
|
|||||||
allVectors.append(contourVectors)
|
allVectors.append(contourVectors)
|
||||||
for contour in contourPens:
|
for contour in contourPens:
|
||||||
stats = StatisticsPen(glyphset=glyphset)
|
stats = StatisticsPen(glyphset=glyphset)
|
||||||
contour.draw(stats)
|
contour.replay(stats)
|
||||||
size = abs(stats.area) ** .5 * .5
|
size = abs(stats.area) ** .5 * .5
|
||||||
vector = (
|
vector = (
|
||||||
int(size),
|
int(size),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user