Skip to content

Commit

Permalink
fix : font_check script updated #189
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Dec 9, 2021
1 parent 6b0e14d commit a41beba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions otherfile/font_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def print_result(flag_list, message_list):

if __name__ == "__main__":
for font in Font_List:
s = []
height_list = []
l = ""
first_line_list = list(map(lambda x: x.split("\n")[0] in ["", " "], art.get_font_dic(font).values()))
last_line_list = list(map(lambda x: x.split("\n")[-1] in ["", " "], art.get_font_dic(font).values()))
Expand All @@ -53,10 +53,10 @@ def print_result(flag_list, message_list):
print("Width error in font {0}, letter {1}".format(font, letter))
Failed4 += 1
if len(letter_data) != 0:
s.append(len(letter_data_split))
height_list.append(len(letter_data_split))
l += letter_data
ascii_flag = is_ascii(l)
if len(set(s)) != 1:
if len(set(height_list)) != 1:
print("Height error in font : " + font)
Failed1 += 1
if not is_utf8(l):
Expand Down

0 comments on commit a41beba

Please sign in to comment.