Font sizes have been moved in to config file
This commit is contained in:
@@ -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