From b79471620074aedbb3764dd4159214be680e2609 Mon Sep 17 00:00:00 2001 From: Dirk Krause Date: Tue, 27 Nov 2018 17:52:39 +0100 Subject: [PATCH] added font extension the .ttf was missing, so the font file couldn't be found. --- src/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/example.py b/src/example.py index 325d5339..7eb75162 100755 --- a/src/example.py +++ b/src/example.py @@ -31,7 +31,7 @@ def get_key_image(deck, key, state): # Load a custom TrueType font and use it to overlay the key index, draw key # number onto the image - font = ImageFont.truetype("Assets/Roboto-Regular", 14) + font = ImageFont.truetype("Assets/Roboto-Regular.ttf", 14) draw = ImageDraw.Draw(image) draw.text((10, height - 20), text="Key {}".format(key), font=font, fill=(255, 255, 255, 128))