Font sizes have been moved in to config file

This commit is contained in:
Vitali Samurov
2020-01-31 02:23:06 +02:00
parent a3aeaae33b
commit 8359015dc6
4 changed files with 17 additions and 14 deletions

View File

@@ -8,7 +8,6 @@ from __future__ import print_function
from inkycal_icalendar import fetch_events
from configuration import*
fontsize = 14
show_events = True
print_events = False
style = 'D MMM YY HH:mm'
@@ -19,7 +18,7 @@ border_top = int(middle_section_height * 0.02)
border_left = int(middle_section_width * 0.02)
"""Choose font optimised for the agenda section"""
font = ImageFont.truetype(NotoSans+'Medium.ttf', fontsize)
font = ImageFont.truetype(NotoSans+'Medium.ttf', agenda_font_size)
line_height = int(font.getsize('hg')[1] * 1.2) + 1
line_width = int(middle_section_width - (border_left*2))