Skip to content

Commit 72b5a24

Browse files
committed
wip
1 parent 10dcbf2 commit 72b5a24

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

sources/scripts/check_fonts.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
4444
set +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" \

sources/scripts/fix_fonts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)