Changed font for calendar module

The new font has a better readability on the E-Paper displays
This commit is contained in:
Ace
2019-12-11 23:07:13 +01:00
committed by GitHub
parent 7670639029
commit 42c82ab84a

View File

@@ -152,7 +152,7 @@ def to_hours(datetime_object, simple = False):
"""Choose font optimised for the weather section"""
fontsize = 8
font = ImageFont.truetype(NotoSans+'.ttf', fontsize)
font = ImageFont.truetype(NotoSans+'Medium.ttf', fontsize)
fill_height = 0.8
while font.getsize('hg')[1] <= (row_height * fill_height):