fix too small line-height

This commit is contained in:
Ace
2023-11-21 16:03:09 +01:00
parent 823df7253a
commit 50f11dc2a4
7 changed files with 21 additions and 53 deletions

View File

@@ -1,4 +1,3 @@
#!python3
"""
Textfile module for InkyCal Project
@@ -68,7 +67,7 @@ class TextToDisplay(inkycal_module):
# Set some parameters for formatting feeds
line_spacing = 4
text_bbox_height = self.font.getbbox("hg")
line_height = text_bbox_height[3] - text_bbox_height[1] + line_spacing
line_height = text_bbox_height[3] + line_spacing
line_width = im_width
max_lines = im_height // line_height
@@ -110,7 +109,3 @@ class TextToDisplay(inkycal_module):
# return images
return im_black, im_colour
if __name__ == '__main__':
print(f'running {__name__} in standalone/debug mode')