diff --git a/src/font_test_manager.py b/src/font_test_manager.py index 93d4c887..fada0a36 100644 --- a/src/font_test_manager.py +++ b/src/font_test_manager.py @@ -25,7 +25,7 @@ class FontTestManager: # Load the TTF font with PIL try: - self.font = ImageFont.truetype(self.font_path, 7) # Size 7 for 5x7 font + self.font = ImageFont.truetype(self.font_path, 5) # Size 7 for 5x7 font self.logger.info(f"Successfully loaded 5x7 regular TTF font from {self.font_path}") except Exception as e: self.logger.error(f"Failed to load 5x7 TTF font: {e}") diff --git a/test/test_odds_ticker.py b/test/test_odds_ticker.py index e64b8525..1bff54e7 100644 --- a/test/test_odds_ticker.py +++ b/test/test_odds_ticker.py @@ -8,8 +8,8 @@ import os import time import logging -# Add the src directory to the path -sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) +# Add the parent directory to the Python path so we can import from src +sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) from src.display_manager import DisplayManager from src.config_manager import ConfigManager