cleanup
This commit is contained in:
parent
a49e8e2481
commit
97ddc901b8
2 changed files with 5 additions and 6 deletions
8
build.py
8
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
|
||||
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue