From c7ee946871f1ecaa8115be80c906a6cc2bc2a5c0 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Tue, 16 Sep 2025 12:34:43 -0400 Subject: [PATCH] shift music album and artist font down the height of the text font --- src/music_manager.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/music_manager.py b/src/music_manager.py index 5383efe6..c8a6af80 100644 --- a/src/music_manager.py +++ b/src/music_manager.py @@ -769,10 +769,16 @@ class MusicManager: ARTIST_Y_PERCENT = 0.34 # 34% from top ALBUM_Y_PERCENT = 0.60 # 60% from top - # Calculate actual pixel positions + # 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 + + # Calculate actual pixel positions, shifted down by font height y_pos_title_top = 1 - y_pos_artist_top = int(matrix_height * ARTIST_Y_PERCENT) - y_pos_album_top = int(matrix_height * ALBUM_Y_PERCENT) + y_pos_artist_top = int(matrix_height * ARTIST_Y_PERCENT) + artist_album_font_height + y_pos_album_top = int(matrix_height * ALBUM_Y_PERCENT) + artist_album_font_height TEXT_SCROLL_DIVISOR = 5