From 33d57a3490aa8f4982ab82f6e051fd3afd82eee7 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Fri, 25 Apr 2025 10:29:08 -0500 Subject: [PATCH] Display Manager improvements: 1) Use existing calendar_font in _draw_bdf_text method 2) Remove redundant Face object creation --- src/display_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/display_manager.py b/src/display_manager.py index 9f0907e7..44442e47 100644 --- a/src/display_manager.py +++ b/src/display_manager.py @@ -143,7 +143,8 @@ class DisplayManager: def _draw_bdf_text(self, text, x, y, color=(255, 255, 255)): """Draw text using BDF font with proper bitmap handling.""" try: - face = freetype.Face(self.calendar_font_path) + # Use the existing calendar_font instead of creating a new Face + face = self.calendar_font for char in text: face.load_char(char)