From 1815a5b7917a532e19ed38afe73e4dae4fccab67 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 28 Dec 2025 17:25:09 -0500 Subject: [PATCH] fix(fonts): Remove missing cozette.bdf font reference (#160) - Removed cozette_bdf from common_fonts dictionary in font_manager.py - Removed cozette_bdf option from web interface font selectors - Resolves warning: 'Common font file not found: assets/fonts/cozette.bdf' - Font can be re-enabled by adding the font file and re-adding to common_fonts Co-authored-by: Chuck --- src/font_manager.py | 6 ++++-- web_interface/templates/v3/partials/fonts.html | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/font_manager.py b/src/font_manager.py index d276bb57..df393363 100644 --- a/src/font_manager.py +++ b/src/font_manager.py @@ -63,8 +63,10 @@ class FontManager: self.common_fonts = { "press_start": "assets/fonts/PressStart2P-Regular.ttf", "four_by_six": "assets/fonts/4x6-font.ttf", - "five_by_seven": "assets/fonts/5x7.bdf", - "cozette_bdf": "assets/fonts/cozette.bdf" + "five_by_seven": "assets/fonts/5x7.bdf" + # Note: cozette_bdf removed - font file not available + # To re-enable: download cozette.bdf from https://github.com/the-moonwitch/Cozette + # and add: "cozette_bdf": "assets/fonts/cozette.bdf" } # Size tokens for convenience diff --git a/web_interface/templates/v3/partials/fonts.html b/web_interface/templates/v3/partials/fonts.html index bae50438..4f8f18e1 100644 --- a/web_interface/templates/v3/partials/fonts.html +++ b/web_interface/templates/v3/partials/fonts.html @@ -114,7 +114,6 @@ - @@ -166,7 +165,6 @@ @@ -663,7 +661,6 @@ function getFontDisplayName(fontKey) { const names = { 'press_start': 'Press Start 2P', 'four_by_six': '4x6 Font', - 'cozette_bdf': 'Cozette BDF', 'matrix_light_6': 'Matrix Light 6' }; return names[fontKey] || fontKey;