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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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