mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
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 <chuck@example.com>
This commit is contained in:
@@ -63,8 +63,10 @@ class FontManager:
|
|||||||
self.common_fonts = {
|
self.common_fonts = {
|
||||||
"press_start": "assets/fonts/PressStart2P-Regular.ttf",
|
"press_start": "assets/fonts/PressStart2P-Regular.ttf",
|
||||||
"four_by_six": "assets/fonts/4x6-font.ttf",
|
"four_by_six": "assets/fonts/4x6-font.ttf",
|
||||||
"five_by_seven": "assets/fonts/5x7.bdf",
|
"five_by_seven": "assets/fonts/5x7.bdf"
|
||||||
"cozette_bdf": "assets/fonts/cozette.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
|
# Size tokens for convenience
|
||||||
|
|||||||
@@ -114,7 +114,6 @@
|
|||||||
<option value="">Use default</option>
|
<option value="">Use default</option>
|
||||||
<option value="press_start">Press Start 2P</option>
|
<option value="press_start">Press Start 2P</option>
|
||||||
<option value="four_by_six">4x6 Font</option>
|
<option value="four_by_six">4x6 Font</option>
|
||||||
<option value="cozette_bdf">Cozette BDF</option>
|
|
||||||
<option value="matrix_light_6">Matrix Light 6</option>
|
<option value="matrix_light_6">Matrix Light 6</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -166,7 +165,6 @@
|
|||||||
<select id="preview-family" class="form-control text-sm">
|
<select id="preview-family" class="form-control text-sm">
|
||||||
<option value="press_start">Press Start 2P</option>
|
<option value="press_start">Press Start 2P</option>
|
||||||
<option value="four_by_six">4x6 Font</option>
|
<option value="four_by_six">4x6 Font</option>
|
||||||
<option value="cozette_bdf">Cozette BDF</option>
|
|
||||||
<option value="matrix_light_6">Matrix Light 6</option>
|
<option value="matrix_light_6">Matrix Light 6</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -663,7 +661,6 @@ function getFontDisplayName(fontKey) {
|
|||||||
const names = {
|
const names = {
|
||||||
'press_start': 'Press Start 2P',
|
'press_start': 'Press Start 2P',
|
||||||
'four_by_six': '4x6 Font',
|
'four_by_six': '4x6 Font',
|
||||||
'cozette_bdf': 'Cozette BDF',
|
|
||||||
'matrix_light_6': 'Matrix Light 6'
|
'matrix_light_6': 'Matrix Light 6'
|
||||||
};
|
};
|
||||||
return names[fontKey] || fontKey;
|
return names[fontKey] || fontKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user