Display Manager improvements: 1) Use existing calendar_font in _draw_bdf_text method 2) Remove redundant Face object creation

This commit is contained in:
ChuckBuilds
2025-04-25 10:29:08 -05:00
parent 47a9052d39
commit 33d57a3490

View File

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