From 56dc224e16af78b5620331800ef473d6304ccf90 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:35:34 -0500 Subject: [PATCH] add one px line gap --- src/of_the_day_manager.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/of_the_day_manager.py b/src/of_the_day_manager.py index 0291e71f..dc5fd8a9 100644 --- a/src/of_the_day_manager.py +++ b/src/of_the_day_manager.py @@ -252,7 +252,9 @@ class OfTheDayManager: line_width += body_font.glyph.advance.x line_width = line_width // 64 line_x = (matrix_width - line_width) // 2 - self._draw_bdf_text(draw, body_font, line, line_x, y_start + i * body_height, color=self.subtitle_color) + # Add one pixel buffer between lines + line_y = y_start + i * (body_height + 1) + self._draw_bdf_text(draw, body_font, line, line_x, line_y, color=self.subtitle_color) elif self.rotation_state == 1 and description: # Show description wrapped = self._wrap_text(description, available_width, body_font, max_lines=3, line_height=body_height, max_height=available_height) @@ -265,7 +267,9 @@ class OfTheDayManager: line_width += body_font.glyph.advance.x line_width = line_width // 64 line_x = (matrix_width - line_width) // 2 - self._draw_bdf_text(draw, body_font, line, line_x, y_start + i * body_height, color=self.subtitle_color) + # Add one pixel buffer between lines + line_y = y_start + i * (body_height + 1) + self._draw_bdf_text(draw, body_font, line, line_x, line_y, color=self.subtitle_color) # else: nothing to show return True except Exception as e: