[ttGlyphPen_test] check ambiguous out-of-range case

that has both a value that exceeds the bounds, and one that's almost 2;
the former case should take precedence and the componed be decomposed
This commit is contained in:
Cosimo Lupo 2018-03-01 17:58:44 +00:00
parent 6a4ccd0e9f
commit 778d4933da
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -195,17 +195,17 @@ class TTGlyphPenTest(unittest.TestCase):
pen.closePath()
glyphSet[componentName] = _TestGlyph(pen.glyph())
pen.addComponent(componentName, (3, 0, 0, 1, 0, 0))
pen.addComponent(componentName, (1, 0, 0, -3, 0, 0))
pen.addComponent(componentName, (3, 0, 0, 2, 0, 0))
pen.addComponent(componentName, (2, 0, 0, -3, 0, 0))
compositeGlyph = pen.glyph()
pen.moveTo((0, 0))
pen.lineTo((0, 1))
pen.lineTo((0, 2))
pen.lineTo((3, 0))
pen.closePath()
pen.moveTo((0, 0))
pen.lineTo((0, -3))
pen.lineTo((1, 0))
pen.lineTo((2, 0))
pen.closePath()
expectedGlyph = pen.glyph()