From bb7f45ffbd500dc20fe83e0cbe8069547c828b88 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 7 Dec 2024 23:09:20 +0000 Subject: [PATCH] Tweak font sizes --- main.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index ad15b3c..17c01e7 100644 --- a/main.py +++ b/main.py @@ -3,13 +3,13 @@ import requests from resizeimage import resizeimage OUTPUT_RESOLUTION = (1280, 720) -TITLE_FONT = ImageFont.truetype("Roboto-Regular.ttf", 92) -TAGS_FONT = ImageFont.truetype("RobotoMono-Regular.ttf", 40) -FOOTER_FONT = ImageFont.truetype("RobotoMono-Regular.ttf", 25) +TITLE_FONT = ImageFont.truetype("Roboto-Regular.ttf", 90) +TAGS_FONT = ImageFont.truetype("RobotoMono-Regular.ttf", 35) +FOOTER_FONT = ImageFont.truetype("RobotoMono-Regular.ttf", 30) TITLE_PADDING = 75 TITLE = "Accessing Tailscale whilst using Mullvad" -TAGS = "#linux #containers #foobar" +TAGS = "#linux" def get_text_width(text, font): @@ -85,11 +85,12 @@ draw.text( print("Drawing footer") draw.rectangle( - [(0, OUTPUT_RESOLUTION[1] - 50), OUTPUT_RESOLUTION], fill=(0, 0, 0, int(255 * 0.5)) + [(0, OUTPUT_RESOLUTION[1] - (FOOTER_FONT.size * 2)), OUTPUT_RESOLUTION], + fill=(0, 0, 0, int(255 * 0.66)), ) draw.text( - (25, OUTPUT_RESOLUTION[1] - 25), + (25, OUTPUT_RESOLUTION[1] - FOOTER_FONT.size), text="theorangeone.net", font=FOOTER_FONT, fill="#e85537", @@ -99,7 +100,7 @@ draw.text( draw.text( - (OUTPUT_RESOLUTION[0] - 25, OUTPUT_RESOLUTION[1] - 25), + (OUTPUT_RESOLUTION[0] - 25, OUTPUT_RESOLUTION[1] - FOOTER_FONT.size), text="2024-01-01", font=FOOTER_FONT, fill="white",