generated from nathanwoodburn/python-webserver-template
parent
975ada0607
commit
29d6b38e27
@ -255,7 +255,7 @@ def og_image():
|
|||||||
|
|
||||||
# Use font from assets
|
# Use font from assets
|
||||||
font_path = "templates/assets/fonts/Orbitron-VariableFont_wght.ttf"
|
font_path = "templates/assets/fonts/Orbitron-VariableFont_wght.ttf"
|
||||||
font_size = 200
|
font_size = 180
|
||||||
# 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):
|
||||||
font_size = 150
|
font_size = 150
|
||||||
|
Loading…
Reference in New Issue
Block a user