[ttGlyphSet_test] Test that RecordingPointPen records VarComposite

This commit is contained in:
Behdad Esfahbod 2023-02-03 10:58:02 -07:00
parent 8e981a1b28
commit fbf09fb24d

View File

@ -1,6 +1,10 @@
from fontTools.ttLib import TTFont
from fontTools.ttLib import ttGlyphSet
from fontTools.pens.recordingPen import RecordingPen, DecomposingRecordingPen
from fontTools.pens.recordingPen import (
RecordingPen,
RecordingPointPen,
DecomposingRecordingPen,
)
from fontTools.misc.roundTools import otRound
from fontTools.misc.transform import DecomposedTransform
import os
@ -293,6 +297,10 @@ class TTGlyphSetTest(object):
assert actual == expected, (actual, expected)
pen = RecordingPointPen()
glyph.drawPoints(pen)
assert pen.value
def test_glyphset_varComposite2(self):
# This test font has axis variations
@ -522,3 +530,7 @@ class TTGlyphSetTest(object):
]
assert actual == expected, (actual, expected)
pen = RecordingPointPen()
glyph.drawPoints(pen)
assert pen.value