fix: Correct font path in generate_board_image function

This commit is contained in:
Slipstream 2025-05-20 20:47:27 -06:00
parent 6c39bec4f7
commit 8de629ca36
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -151,7 +151,7 @@ def generate_board_image(game: WordleGame, used_letters: Set[str] = None) -> dis
PROJECT_ROOT = os.path.dirname(os.path.dirname(SCRIPT_DIR)) # Go up two levels from games dir
FONT_DIR_NAME = "FONT" # Directory specified by user
FONT_FILE_NAME = "DejaVuSans.ttf"
font_path = os.path.join(PROJECT_ROOT, "..", "..", FONT_DIR_NAME, FONT_FILE_NAME)
font_path = os.path.join(PROJECT_ROOT, FONT_DIR_NAME, FONT_FILE_NAME)
print(f"Font path: {font_path}")
# Try to load the font