Skip to content

Commit

Permalink
Downgrade PANOSE consistency checks to WARN instead of FAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstein authored Aug 31, 2023
1 parent 6c7e00e commit cacaa34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ A more detailed list of changes is available in the corresponding milestones for
- **[com.google.fonts/check/grade_reflow]**: This check has been renamed to **com.google.fonts/check/varfont/duplexed_axis_reflow** and now also checks the `ROND` axis. (issue #4200)
- **[com.google.fonts/check/glyph_coverage]:** This check is now skipped for icon fonts. (issues #3323 and #3327)

#### On the OpenType profile
- **[com.google.fonts/check/family/panose_familytype], [com.google.fonts/check/family/panose_proportion]:** Failures have been downgraded to warnings. (issue #4192)

## 0.9.0a2 (2023-Aug-04)
### Changes to existing checks
Expand Down
4 changes: 2 additions & 2 deletions Lib/fontbakery/profiles/os2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/profiles/os2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)


Expand All @@ -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."
)


Expand Down

0 comments on commit cacaa34

Please sign in to comment.