@@ -155,7 +155,6 @@ def test_textsize_equal(self):
155
155
draw .text ((10 , 10 ), txt , font = ttf )
156
156
draw .rectangle ((10 , 10 , 10 + size [0 ], 10 + size [1 ]))
157
157
158
- # Epsilon ~.5 fails with FreeType 2.7
159
158
assert_image_similar_tofile (
160
159
im , "Tests/images/rectangle_surrounding_text.png" , 2.5
161
160
)
@@ -216,8 +215,7 @@ def test_render_multiline_text(self):
216
215
draw = ImageDraw .Draw (im )
217
216
draw .text ((0 , 0 ), TEST_TEXT , font = ttf )
218
217
219
- # Epsilon ~.5 fails with FreeType 2.7
220
- assert_image_similar_tofile (im , "Tests/images/multiline_text.png" , 6.2 )
218
+ assert_image_similar_tofile (im , "Tests/images/multiline_text.png" , 0.01 )
221
219
222
220
# Test that text() can pass on additional arguments
223
221
# to multiline_text()
@@ -232,9 +230,8 @@ def test_render_multiline_text(self):
232
230
draw = ImageDraw .Draw (im )
233
231
draw .multiline_text ((0 , 0 ), TEST_TEXT , font = ttf , align = align )
234
232
235
- # Epsilon ~.5 fails with FreeType 2.7
236
233
assert_image_similar_tofile (
237
- im , "Tests/images/multiline_text" + ext + ".png" , 6.2
234
+ im , "Tests/images/multiline_text" + ext + ".png" , 0.01
238
235
)
239
236
240
237
def test_unknown_align (self ):
@@ -289,8 +286,7 @@ def test_multiline_spacing(self):
289
286
draw = ImageDraw .Draw (im )
290
287
draw .multiline_text ((0 , 0 ), TEST_TEXT , font = ttf , spacing = 10 )
291
288
292
- # Epsilon ~.5 fails with FreeType 2.7
293
- assert_image_similar_tofile (im , "Tests/images/multiline_text_spacing.png" , 6.2 )
289
+ assert_image_similar_tofile (im , "Tests/images/multiline_text_spacing.png" , 2.5 )
294
290
295
291
def test_rotated_transposed_font (self ):
296
292
img_grey = Image .new ("L" , (100 , 100 ))
0 commit comments