Merge pull request #3345 from fonttools/recordingPen-draw
[RecordPen] Add draw() and drawPoints() as alias to replay()
This commit is contained in:
commit
638a16ceb8
@ -76,6 +76,8 @@ class RecordingPen(AbstractPen):
|
||||
def replay(self, pen):
|
||||
replayRecording(self.value, pen)
|
||||
|
||||
draw = replay
|
||||
|
||||
|
||||
class DecomposingRecordingPen(DecomposingPen, RecordingPen):
|
||||
"""Same as RecordingPen, except that it doesn't keep components
|
||||
@ -167,6 +169,8 @@ class RecordingPointPen(AbstractPointPen):
|
||||
for operator, args, kwargs in self.value:
|
||||
getattr(pointPen, operator)(*args, **kwargs)
|
||||
|
||||
drawPoints = replay
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pen = RecordingPen()
|
||||
|
Loading…
x
Reference in New Issue
Block a user