diff --git a/Lib/fontbakery/checks/opentype/head.py b/Lib/fontbakery/checks/opentype/head.py index 6bdf723cc9..85d4b69368 100644 --- a/Lib/fontbakery/checks/opentype/head.py +++ b/Lib/fontbakery/checks/opentype/head.py @@ -1,7 +1,7 @@ import fractions from fontbakery.callable import check -from fontbakery.status import FAIL, PASS, WARN, SKIP +from fontbakery.status import FAIL, PASS, WARN from fontbakery.message import Message from fontbakery.constants import NameID @@ -184,6 +184,7 @@ def com_google_fonts_check_font_version(ttFont): that describe whether a font is bold and/or italic must be coherent with the actual style of the font as inferred by its filename. """, + conditions=["style"], proposal="legacy:check/131", ) def com_google_fonts_check_mac_style(font): @@ -191,10 +192,6 @@ def com_google_fonts_check_mac_style(font): from fontbakery.utils import check_bit_entry from fontbakery.constants import MacStyle - if font.style is None: - yield SKIP, "Font style could not be determined." - return - # Checking macStyle ITALIC bit: expected = "Italic" in font.style yield check_bit_entry(