From 0cfcafeb27fdb87e4af082f74275bd40e1944b3b Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Sun, 2 Mar 2025 16:38:49 +0100 Subject: [PATCH] mod letter --- backend/open_webui/models/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/models/users.py b/backend/open_webui/models/users.py index e5c37f2..7fab742 100644 --- a/backend/open_webui/models/users.py +++ b/backend/open_webui/models/users.py @@ -386,7 +386,7 @@ class UsersTable: font_size = get_font_size(size, letter, font_path) font = ImageFont.truetype(font_path, font_size) except IOError: - font_url = "https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2" + font_url = "https://fonts.gstatic.com/s/readexpro/v21/SLXYc1bJ7HE5YDoGPuzj_dh8uc7wUy8ZQQyX2IwwZEzehiB9.woff2" response = requests.get(font_url) font_data = response.content font_size = get_font_size(size, letter, font_data) @@ -396,7 +396,7 @@ class UsersTable: bbox = font.getbbox(letter) text_width = bbox[2] - bbox[0] x = (size[0] - text_width) // 2 - y = (size[1] - bbox[1]) // 2 # Poprawione obliczenie pozycji y + y = (size[1] - bbox[1]) #// 2 # Poprawione obliczenie pozycji y draw.text((x, y), letter, font=font, fill=text_color) buffered = io.BytesIO()