From 778d4933da9b8c758411c4305fe48ebcf9c600f8 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 1 Mar 2018 17:58:44 +0000 Subject: [PATCH] [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 --- Tests/pens/ttGlyphPen_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/pens/ttGlyphPen_test.py b/Tests/pens/ttGlyphPen_test.py index 96469b47b..188a67c80 100644 --- a/Tests/pens/ttGlyphPen_test.py +++ b/Tests/pens/ttGlyphPen_test.py @@ -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()