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

@@ -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)