diff --git a/server.py b/server.py index 043fe75..bb1217a 100644 --- a/server.py +++ b/server.py @@ -253,8 +253,8 @@ def og_image(): text += f"\n{to_tz_time.strftime('%I:%M %p')} {tz[0].replace('_','/')}" - - font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf" + # Use font from assets + font_path = "templates/assets/fonts/Orbitron-VariableFont_wght.ttf" font_size = 200 # Shrink font size if text is too long if (max(len(line) for line in text.split("\n")) > 13): diff --git a/templates/assets/fonts/Orbitron-VariableFont_wght.ttf b/templates/assets/fonts/Orbitron-VariableFont_wght.ttf new file mode 100644 index 0000000..2f33003 Binary files /dev/null and b/templates/assets/fonts/Orbitron-VariableFont_wght.ttf differ