Changed font for calendar module
The new font has a better readability on the E-Paper displays
This commit is contained in:
parent
7670639029
commit
42c82ab84a
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user