Перенос проблемы с _ на функцию рендеринга профиля

This commit is contained in:
2025-07-11 22:58:32 +03:00
parent 067e59d23a
commit 302cc540f7
2 changed files with 3 additions and 2 deletions

View File

@@ -62,8 +62,9 @@ def render(data, design):
# Текст
try:
font = ImageFont.truetype("src/data/fonts/segoeuib.ttf", 24*scale)
if len(data['nick']) > 12:
if len(data['nick']) >= 12:
font = ImageFont.truetype("src/data/fonts/segoeuib.ttf", 20*scale)
data['nick'].replace("_", " ")
except:
font = ImageFont.load_default()