fix: Add custom font

This commit is contained in:
Nathan Woodburn 2025-03-06 23:30:37 +11:00
parent b38436deba
commit 975ada0607
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 2 additions and 2 deletions

View File

@ -253,8 +253,8 @@ def og_image():
text += f"\n{to_tz_time.strftime('%I:%M %p')} {tz[0].replace('_','/')}" text += f"\n{to_tz_time.strftime('%I:%M %p')} {tz[0].replace('_','/')}"
# Use font from assets
font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf" font_path = "templates/assets/fonts/Orbitron-VariableFont_wght.ttf"
font_size = 200 font_size = 200
# Shrink font size if text is too long # Shrink font size if text is too long
if (max(len(line) for line in text.split("\n")) > 13): if (max(len(line) for line in text.split("\n")) > 13):

Binary file not shown.