generated from nathanwoodburn/python-webserver-template
parent
b38436deba
commit
975ada0607
@ -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):
|
||||||
|
BIN
templates/assets/fonts/Orbitron-VariableFont_wght.ttf
Normal file
BIN
templates/assets/fonts/Orbitron-VariableFont_wght.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user