mod letter

This commit is contained in:
l.gabrysiak 2025-03-02 15:47:27 +01:00
parent d897beb594
commit 2282f39d38
1 changed files with 2 additions and 1 deletions

View File

@ -385,10 +385,11 @@ class UsersTable:
font_url = "https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu4mxP.ttf"
response = requests.get(font_url)
font_file = io.BytesIO(response.content)
font_size = get_font_size(size, letter, font_file)
# Użyj pobranej czcionki
font = ImageFont.truetype(font_file, size=font_size)
print(f"2) {font_size}")
#print(f"2) {font_size}")
# Obliczanie pozycji tekstu
bbox = font.getbbox(letter)