From b30a63133ee3fe1143bf68f04e7a4df09bedca8a Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Thu, 8 Apr 2021 02:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E5=BA=8F=E9=A1=BA=E5=BA=8F=E5=86=99?= =?UTF-8?q?=E5=8F=8D=E4=BA=86=20:=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/generate_font.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_font.py b/scripts/generate_font.py index db41d99..c8184b7 100644 --- a/scripts/generate_font.py +++ b/scripts/generate_font.py @@ -181,7 +181,7 @@ def find_by_coord(ttf, fuzz): if cans: if len(cans) > 1: print(cans) - cans = sorted(cans, key=lambda x: x[1]) + cans = sorted(cans, key=lambda x: x[1], reverse=True) result[tc] = cans[0][0] return result