From 4d0089141c3b0bacfff5f5a3e949866a1fe851bf Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 21 Mar 2026 19:26:55 +1100 Subject: [PATCH] Fixed invalid test font --- Tests/fonts/fuzz_font-5203009437302784 | 6 +++--- Tests/test_font_crash.py | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Tests/fonts/fuzz_font-5203009437302784 b/Tests/fonts/fuzz_font-5203009437302784 index 0465e48c204..fb401fea225 100644 --- a/Tests/fonts/fuzz_font-5203009437302784 +++ b/Tests/fonts/fuzz_font-5203009437302784 @@ -1,10 +1,10 @@ STARTFONT FONT � SIZE 10 -FONTBOUNDINGBOX -CHARS +FONTBOUNDINGBOX 1 1 0 0 +CHARS 1 STARTCHAR -ENCODING +ENCODING 65 BBX 2 5 ENDCHAR ENDFONT diff --git a/Tests/test_font_crash.py b/Tests/test_font_crash.py index c3e62abf62e..72a0f353477 100644 --- a/Tests/test_font_crash.py +++ b/Tests/test_font_crash.py @@ -2,8 +2,6 @@ from PIL import Image, ImageDraw, ImageFont -from .helper import skip_unless_feature_version - class TestFontCrash: def _fuzz_font(self, font: ImageFont.FreeTypeFont) -> None: @@ -16,7 +14,6 @@ def _fuzz_font(self, font: ImageFont.FreeTypeFont) -> None: draw.multiline_textbbox((10, 10), "ABC\nAaaa", font, stroke_width=2) draw.text((10, 10), "Test Text", font=font, fill="#000") - @skip_unless_feature_version("freetype2", "2.12.0") def test_segfault(self) -> None: font = ImageFont.truetype("Tests/fonts/fuzz_font-5203009437302784") self._fuzz_font(font)