mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
feat: add debug logging for font usage in calendar display
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user