From 97c9ebeeacedbb2dc3fa798b19f942c07dc8c5c6 Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Wed, 29 Jan 2025 13:05:41 +0000 Subject: [PATCH] check_base_has_width: user correct param --- Lib/fontbakery/checks/base_has_width.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontbakery/checks/base_has_width.py b/Lib/fontbakery/checks/base_has_width.py index 4922814cba..fa684365b7 100644 --- a/Lib/fontbakery/checks/base_has_width.py +++ b/Lib/fontbakery/checks/base_has_width.py @@ -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()} @@ -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}",