Skip to content

Commit

Permalink
排序顺序写反了 : )
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Apr 7, 2021
1 parent 5263b6b commit b30a631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b30a631

Please sign in to comment.