mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
Revert "feat(weather): Adjust layout and reduce font size"
This reverts commit 6d31a0953e.
This commit is contained in:
@@ -128,17 +128,12 @@ class DisplayManager:
|
||||
# Use the same font for small text, just at a smaller size
|
||||
self.small_font = ImageFont.truetype("assets/fonts/PressStart2P-Regular.ttf", 8)
|
||||
logger.info("Press Start 2P small font loaded successfully")
|
||||
|
||||
# Add an even smaller font using 4x6.bdf
|
||||
self.extra_small_font = ImageFont.load("assets/fonts/4x6.bdf")
|
||||
logger.info("4x6.bdf extra small font loaded successfully")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error in font loading: {e}")
|
||||
# Fallback to default font
|
||||
self.regular_font = ImageFont.load_default()
|
||||
self.small_font = self.regular_font
|
||||
self.extra_small_font = self.regular_font # Fallback for extra small
|
||||
|
||||
def draw_text(self, text: str, x: int = None, y: int = None, color: Tuple[int, int, int] = (255, 255, 255), small_font: bool = False) -> None:
|
||||
"""Draw text on the display with improved clarity."""
|
||||
|
||||
Reference in New Issue
Block a user