From 79053c8f226b4b07f0ab66d4deb23705b1a4e170 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sun, 20 Aug 2023 01:53:22 +0430 Subject: [PATCH 1/2] fix : font_check.py updated --- otherfile/font_check.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otherfile/font_check.py b/otherfile/font_check.py index a6c283c7..426df61e 100644 --- a/otherfile/font_check.py +++ b/otherfile/font_check.py @@ -40,7 +40,7 @@ def print_result(flag_list, message_list): if __name__ == "__main__": for font in Font_List: height_list = [] - l = "" + font_data = "" first_line_list = [x.split("\n")[0] in ["", " "] for x in art.get_font_dic(font).values()] last_line_list = [x.split("\n")[-1] in ["", " "] for x in art.get_font_dic(font).values()] for letter, letter_data in art.get_font_dic(font).items(): @@ -57,12 +57,12 @@ def print_result(flag_list, message_list): Failed4 += 1 if letter_data: height_list.append(len(letter_data_split)) - l += letter_data - ascii_flag = is_ascii(l) + font_data += letter_data + ascii_flag = is_ascii(font_data) if len(set(height_list)) != 1: print("Height error in font : " + font) Failed1 += 1 - if not is_utf8(l): + if not is_utf8(font_data): Failed3 += 1 print("UTF-8 compatibility error in font : " + font) if ascii_flag and font in NON_ASCII_FONTS: From 9e24e595af9e4ca4a71b7fb2c82edf350ae8dad1 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sun, 20 Aug 2023 01:54:17 +0430 Subject: [PATCH 2/2] doc : CHANGELOG updated --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e9483a5..161ac9e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - `space` parameter bug fixed - `space` parameter added to `art` function - `space` parameter added to `aprint` function +- `font_check.py` modified ## [6.0] - 2023-06-14 ### Added - 6 new font