mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
fix new bdf font draw error
This commit is contained in:
@@ -38,8 +38,8 @@ class OfTheDayManager:
|
||||
|
||||
# Load fonts
|
||||
font_dir = os.path.join(os.path.dirname(__file__), '..', 'assets', 'fonts')
|
||||
self.title_font = ImageFont.load(os.path.join(font_dir, 'ic8x8u.bdf'))
|
||||
self.body_font = ImageFont.load(os.path.join(font_dir, 'cozette.bdf'))
|
||||
self.title_font = ImageFont.load_bdf(os.path.join(font_dir, 'ic8x8u.bdf'))
|
||||
self.body_font = ImageFont.load_bdf(os.path.join(font_dir, 'cozette.bdf'))
|
||||
|
||||
# Load categories and their data
|
||||
self.categories = self.of_the_day_config.get('categories', {})
|
||||
|
||||
Reference in New Issue
Block a user