Skip to content

Commit

Permalink
check_base_has_width: user correct param
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Jan 29, 2025
1 parent 0b6c4f8 commit 97c9ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/fontbakery/checks/base_has_width.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def is_space(codepoint):
proposal="https://github.com/fonttools/fontbakery/issues/4906",
experimental="Since 2024/12/28",
)
def check_base_has_width(font, context):
def check_base_has_width(font, config):
"""Check base characters have non-zero advance width."""

reversed_cmap = {v: k for k, v in font.ttFont.getBestCmap().items()}
Expand All @@ -43,7 +43,7 @@ def check_base_has_width(font, context):
problems.append(f"{gid} (U+{codepoint:04X})")

if problems:
problems = bullet_list(context, problems)
problems = bullet_list(config, problems)
yield FAIL, Message(
"zero-width-bases",
f"The following glyphs had zero advance width:\n{problems}",
Expand Down

0 comments on commit 97c9ebe

Please sign in to comment.