fix: Make font a bit smaller

This commit is contained in:
Nathan Woodburn 2025-03-06 23:33:37 +11:00
parent 975ada0607
commit 29d6b38e27
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -255,7 +255,7 @@ def og_image():
# Use font from assets
font_path = "templates/assets/fonts/Orbitron-VariableFont_wght.ttf"
font_size = 200
font_size = 180
# Shrink font size if text is too long
if (max(len(line) for line in text.split("\n")) > 13):
font_size = 150