From 46535df8f3d37831a826e31c84066f64bea77c7a Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 1 Jul 2019 16:32:22 +0300 Subject: [PATCH] Update epsilon for FreeType 2.10 with eg. Unicode width 16 --- Tests/test_imagefont.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 5532750feb1..34ddbd53b5b 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -53,7 +53,8 @@ class TestImageFont(PillowTestCase): # (and, other things, but first things first) METRICS = { (">=2.3", "<2.4"): {"multiline": 30, "textsize": 12, "getters": (13, 16)}, - (">=2.7",): {"multiline": 6.2, "textsize": 2.5, "getters": (12, 16)}, + (">=2.7", "<2.10"): {"multiline": 6.2, "textsize": 2.5, "getters": (12, 16)}, + (">=2.10",): {"multiline": 14.8, "textsize": 2.5, "getters": (12, 16)}, "Default": {"multiline": 0.5, "textsize": 0.5, "getters": (12, 16)}, }