diff --git a/Tests/fonts/NotoColorEmoji.ttf b/Tests/fonts/NotoColorEmoji.ttf index 6757b6f93b3..ef7b725758c 100644 Binary files a/Tests/fonts/NotoColorEmoji.ttf and b/Tests/fonts/NotoColorEmoji.ttf differ diff --git a/Tests/images/cbdt_notocoloremoji.png b/Tests/images/cbdt_notocoloremoji.png index 111c6c9b52e..1da12fba115 100644 Binary files a/Tests/images/cbdt_notocoloremoji.png and b/Tests/images/cbdt_notocoloremoji.png differ diff --git a/Tests/images/cbdt_notocoloremoji_mask.png b/Tests/images/cbdt_notocoloremoji_mask.png index c0ffce01a9b..6d036a0b6ba 100644 Binary files a/Tests/images/cbdt_notocoloremoji_mask.png and b/Tests/images/cbdt_notocoloremoji_mask.png differ diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 1e7096ad860..96cab5c4a19 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -852,6 +852,7 @@ def test_standard_embedded_color(self): with Image.open("Tests/images/standard_embedded.png") as expected: assert_image_similar(img, expected, max(self.metrics["multiline"], 3)) + @pytest.mark.xfail(is_pypy(), reason="failing on PyPy with Raqm") def test_cbdt(self): if parse_version(features.version_module("freetype2")) < parse_version("2.5.0"): pytest.skip("Freetype 2.5.0 or newer required") @@ -865,7 +866,7 @@ def test_cbdt(self): im = Image.new("RGB", (150, 150), "white") d = ImageDraw.Draw(im) - d.text((10, 10), "\u263A", embedded_color=True, font=font) + d.text((10, 10), "\U0001f469", embedded_color=True, font=font) with Image.open("Tests/images/cbdt_notocoloremoji.png") as expected: assert_image_similar(im, expected, self.metrics["multiline"]) @@ -873,6 +874,7 @@ def test_cbdt(self): assert str(ex) in ("unimplemented feature", "unknown file format") pytest.skip("freetype compiled without libpng or unsupported") + @pytest.mark.xfail(is_pypy(), reason="failing on PyPy with Raqm") def test_cbdt_mask(self): if parse_version(features.version_module("freetype2")) < parse_version("2.5.0"): pytest.skip("Freetype 2.5.0 or newer required") @@ -886,7 +888,7 @@ def test_cbdt_mask(self): im = Image.new("RGB", (150, 150), "white") d = ImageDraw.Draw(im) - d.text((10, 10), "\u263A", "black", font=font) + d.text((10, 10), "\U0001f469", "black", font=font) with Image.open("Tests/images/cbdt_notocoloremoji_mask.png") as expected: assert_image_similar(im, expected, self.metrics["multiline"])