mirror of
https://github.com/Murasame-Dev/McStatus-Img.git
synced 2025-12-16 21:27:58 +00:00
fix the font size which was not defined
This commit is contained in:
parent
1477718bca
commit
f19a354c5d
1 changed files with 1 additions and 2 deletions
|
|
@ -69,7 +69,6 @@ def create_image(background: bytes,
|
||||||
|
|
||||||
if (len(text_list) + len(motd_list)) * 20 + 20 > height:
|
if (len(text_list) + len(motd_list)) * 20 + 20 > height:
|
||||||
height = (len(text_list) + len(motd_list)) * 20 + 20
|
height = (len(text_list) + len(motd_list)) * 20 + 20
|
||||||
else:
|
|
||||||
font_size = height // 12
|
font_size = height // 12
|
||||||
if font_size * 20 > width - width // 2.5:
|
if font_size * 20 > width - width // 2.5:
|
||||||
font_size = (width - width // 2.5) // 20
|
font_size = (width - width // 2.5) // 20
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue