From 7ba7d5de13e7f322d37825df0a537ef669718716 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Tue, 16 Sep 2025 22:42:58 -0400 Subject: [PATCH] reduce font shift in music manager fo r more consistent experience --- src/music_manager.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/music_manager.py b/src/music_manager.py index efa254b7..e5949163 100644 --- a/src/music_manager.py +++ b/src/music_manager.py @@ -769,22 +769,11 @@ class MusicManager: ARTIST_Y_PERCENT = 0.34 # 34% from top ALBUM_Y_PERCENT = 0.60 # 60% from top - # Get font height for artist/album text - try: - artist_album_font_height = self.display_manager.get_font_height(font_artist_album) - except: - artist_album_font_height = LINE_HEIGHT_BDF # Fallback to BDF height - - # Ensure we have a reasonable shift (minimum 6 pixels) - font_shift = max(artist_album_font_height, 6) - - # Calculate actual pixel positions, shifted down by font height + # Use fixed positioning to ensure consistency across all songs + # The BDF 5x7 font has consistent metrics, so we don't need dynamic shifts y_pos_title_top = 1 - y_pos_artist_top = int(matrix_height * ARTIST_Y_PERCENT) + font_shift - - # For album, use a smaller shift to ensure it fits above progress bar - album_shift = min(font_shift, 5) # Cap album shift at 5 pixels to preserve space - y_pos_album_top = int(matrix_height * ALBUM_Y_PERCENT) + album_shift + y_pos_artist_top = int(matrix_height * ARTIST_Y_PERCENT) + y_pos_album_top = int(matrix_height * ALBUM_Y_PERCENT) TEXT_SCROLL_DIVISOR = 5