feat: add debug logging for font usage in calendar display

This commit is contained in:
ChuckBuilds
2025-04-23 14:21:52 -05:00
parent a73e483fe7
commit f135befb3b
2 changed files with 4 additions and 0 deletions

View File

@@ -127,6 +127,8 @@ class CalendarManager:
# Use display manager's small font for date/time and calendar font for summary
datetime_font = self.display_manager.small_font
summary_font = self.display_manager.calendar_font
logger.debug(f"Using datetime font: {datetime_font}")
logger.debug(f"Using summary font: {summary_font}")
available_width = self.display_manager.matrix.width - 4 # Leave 2 pixel margin on each side
# Draw date and time on top line

View File

@@ -192,8 +192,10 @@ class DisplayManager:
# Select font based on parameters
if font:
current_font = font
logger.debug(f"Using custom font: {font}")
else:
current_font = self.small_font if small_font else self.regular_font
logger.debug(f"Using {'small' if small_font else 'regular'} font: {current_font}")
# Calculate x position if not provided (center text)
if x is None: