Font sizes have been moved in to config file
This commit is contained in:
@@ -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))
|
||||
|
||||
|
@@ -16,8 +16,7 @@ at_in_your_language = 'at'
|
||||
event_icon = 'square' # dot #square
|
||||
style = "DD MMM"
|
||||
|
||||
fontsize = 16
|
||||
font = ImageFont.truetype(NotoSans+'.ttf', fontsize)
|
||||
font = ImageFont.truetype(NotoSans+'.ttf', calendar_font_size)
|
||||
space_between_lines = 0
|
||||
|
||||
if show_events == True:
|
||||
|
@@ -9,14 +9,12 @@ import feedparser
|
||||
from random import shuffle
|
||||
from configuration import *
|
||||
|
||||
fontsize = 14
|
||||
|
||||
"""Add a border to increase readability"""
|
||||
border_top = int(bottom_section_height * 0.05)
|
||||
border_left = int(bottom_section_width * 0.02)
|
||||
|
||||
"""Choose font optimised for the weather section"""
|
||||
font = ImageFont.truetype(NotoSans+'.ttf', fontsize)
|
||||
font = ImageFont.truetype(NotoSans+'.ttf', rss_font_size)
|
||||
space_between_lines = 1
|
||||
line_height = font.getsize('hg')[1] + space_between_lines
|
||||
line_width = bottom_section_width - (border_left*2)
|
||||
|
Reference in New Issue
Block a user