generated from nathanwoodburn/python-webserver-template
fix: Make font a bit smaller
All checks were successful
Build Docker / BuildImage (push) Successful in 27s
All checks were successful
Build Docker / BuildImage (push) Successful in 27s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user