Skip to content

Commit

Permalink
print font
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Sep 21, 2024
1 parent 36a9df0 commit 87135e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tinyticker/layouts/big_logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ def ttf_font_or_default(
font: str, size: int = 10
) -> Union[ImageFont.FreeTypeFont, ImageFont.ImageFont]:
try:
print(f"using font {font}")
return ImageFont.truetype(font, size)
except OSError:
print("using default")
return ImageFont.load_default(size)


Expand Down

0 comments on commit 87135e2

Please sign in to comment.