From 7fc1adc518aed823692dc43e0056da59ceff6589 Mon Sep 17 00:00:00 2001 From: Bram Stein Date: Thu, 31 Aug 2023 11:52:09 +0200 Subject: [PATCH] Downgrade PANOSE consistency checks to warnings instead of failures. --- Lib/fontbakery/profiles/os2.py | 4 ++-- tests/profiles/os2_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/fontbakery/profiles/os2.py b/Lib/fontbakery/profiles/os2.py index 0e02a3dc65..2f54407b44 100644 --- a/Lib/fontbakery/profiles/os2.py +++ b/Lib/fontbakery/profiles/os2.py @@ -35,7 +35,7 @@ def com_google_fonts_check_family_panose_proportion(ttFonts): ) if not passed: - yield FAIL, Message( + yield WARN, Message( "inconsistency", "PANOSE proportion is not the same across this family." " In order to fix this, please make sure that" @@ -71,7 +71,7 @@ def com_google_fonts_check_family_panose_familytype(ttFonts): ) if not passed: - yield FAIL, Message( + yield WARN, Message( "inconsistency", "PANOSE family type is not the same across this family." " In order to fix this, please make sure that" diff --git a/tests/profiles/os2_test.py b/tests/profiles/os2_test.py index bab788ac15..6f99737bb6 100644 --- a/tests/profiles/os2_test.py +++ b/tests/profiles/os2_test.py @@ -60,7 +60,7 @@ def test_check_family_panose_proportion(mada_ttFonts): mada_ttFonts[0]["OS/2"].panose.bProportion = incorrect_value assert_results_contain( - check(mada_ttFonts), FAIL, "inconsistency", "with inconsistent family." + check(mada_ttFonts), WARN, "inconsistency", "with inconsistent family." ) @@ -78,7 +78,7 @@ def test_check_family_panose_familytype(mada_ttFonts): mada_ttFonts[0]["OS/2"].panose.bFamilyType = incorrect_value assert_results_contain( - check(mada_ttFonts), FAIL, "inconsistency", "with inconsistent family." + check(mada_ttFonts), WARN, "inconsistency", "with inconsistent family." )