From 26fd7992fed82d387717c1e7f61af28bd916e2e5 Mon Sep 17 00:00:00 2001 From: Ben Kiel Date: Sat, 11 Jan 2025 11:59:19 -0600 Subject: [PATCH] Fix is_italic --- Lib/fontbakery/testable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontbakery/testable.py b/Lib/fontbakery/testable.py index 80dda1e80a..6540ba880a 100644 --- a/Lib/fontbakery/testable.py +++ b/Lib/fontbakery/testable.py @@ -224,7 +224,7 @@ def is_italic(self): ("OS/2" in ttFont and ttFont["OS/2"].fsSelection & FsSelection.ITALIC) or ("head" in ttFont and ttFont["head"].macStyle & MacStyle.ITALIC) or keyword_in_full_font_name(ttFont, "italic") - or ("post" in ttFont and ttFont["post"].italicAngle) + or ("post" in ttFont and ttFont["post"].italicAngle != 0) ) @cached_property