File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ echo "Running Fontbakery checks on fonts in $FONT_DIR..."
3737 echo
3838} > " $LOG_PATH "
3939
40- # Note: We disable opentype/monospace because it incorrectly flags our
41- # quasi-proportional font as monospaced. This is due to a majority of glyphs
40+ # Note: We disable opentype/monospace because it incorrectly flags our
41+ # quasi-proportional font as monospaced. This is due to a majority of glyphs
4242# sharing a common width, even though the font is not intended to be monospaced.
4343# See: https://github.com/fonttools/fontbakery/blob/ffe83a2824631ddbabdbf69c47b8128647de30d1/Lib/fontbakery/checks/conditions.py#L50
4444set +e
45- fontbakery check-googlefonts \
45+ uv run sources/scripts/fontbakery_wrapper.py check-googlefonts \
4646 -C --succinct --loglevel FAIL \
4747 --exclude-checkid opentype/monospace \
4848 --ghmarkdown " $REPORT_PATH " \
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ def fix_style_bits(font):
433433 base_style = style_str .replace (" Italic" , "" ).strip ()
434434 is_italic = "Italic" in style_str
435435 is_bold = base_style == "Bold"
436- is_regular = base_style == "Regular"
436+ is_regular = not is_bold and not is_italic
437437
438438 fs_sel = os2 .fsSelection
439439 # Clear bold/italic/regular bits first
You can’t perform that action at this time.
0 commit comments