diff --git a/build.py b/build.py index def29ab..2dea31f 100755 --- a/build.py +++ b/build.py @@ -1174,11 +1174,9 @@ def main(): _build_cn() - if font_config.use_cn_both: - result = font_config.toggle_nf_cn_config() - if result: - build_option.load_cn_dir_and_suffix(font_config.should_build_nf_cn()) - _build_cn() + if font_config.use_cn_both and font_config.toggle_nf_cn_config(): + build_option.load_cn_dir_and_suffix(font_config.should_build_nf_cn()) + _build_cn() build_option.is_cn_built = True diff --git a/source/py/utils.py b/source/py/utils.py index fb7ee47..c8f02f4 100644 --- a/source/py/utils.py +++ b/source/py/utils.py @@ -203,8 +203,9 @@ def verify_glyph_width(font: TTFont, expect_widths: list[int], forgive: bool): print(f"Every glyph's width should be in {expect_widths}, but these are not:") for item in result: print(f"{item[0]} => {item[1]}") + if forgive: - print("[WARN] Forgive it") + print("❗Forgive it") else: raise Exception( f"The font may contain glyphs that width is not in {expect_widths}, which may broke monospace rule."