change how font is loaded via systemctl - added direct paths

This commit is contained in:
Chuck
2025-08-13 20:36:23 -05:00
parent 8e1b04550b
commit 6bc1039ed6
16 changed files with 132 additions and 90 deletions

View File

@@ -337,7 +337,8 @@ class WeatherManager:
# --- Right Side (Below Condition): Current Temp ---
temp = round(weather_data['main']['temp'])
temp_text = f"{temp}°"
temp_font = self.display_manager.small_font # Using small font
# Ensure we use the intended PS2P font managed by DisplayManager
temp_font = getattr(self.display_manager, 'regular_font', self.display_manager.small_font)
temp_text_width = draw.textlength(temp_text, font=temp_font)
temp_x = self.display_manager.matrix.width - temp_text_width - 1 # Align right
temp_y = condition_y + 8 # Position below condition text (adjust 8 based on font size)