fix too small line-height
This commit is contained in:
		| @@ -1,5 +1,3 @@ | ||||
| #!python3 | ||||
|  | ||||
| """ | ||||
| Inkycal Todoist Module | ||||
| Copyright by aceinnolab | ||||
| @@ -87,7 +85,7 @@ class Todoist(inkycal_module): | ||||
|         # Set some parameters for formatting todos | ||||
|         line_spacing = 1 | ||||
|         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 | ||||
|  | ||||
| @@ -198,7 +196,3 @@ class Todoist(inkycal_module): | ||||
|  | ||||
|         # return the images ready for the display | ||||
|         return im_black, im_colour | ||||
|  | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     print(f'running {__name__} in standalone/debug mode') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user