From 0782a8308fa56d0e228e15c74390341f2628e363 Mon Sep 17 00:00:00 2001 From: Doychin Atanasov Date: Sun, 4 Feb 2018 19:44:02 +0200 Subject: [PATCH] Do not try to load SysFont Apprantly it crashes on windows after bundling with PyInstaller. But it works when running from source. How strange! --- menu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu.py b/menu.py index 373dfb6..2b058bf 100644 --- a/menu.py +++ b/menu.py @@ -74,6 +74,7 @@ #---[ Imports ]----------------------------------------------------------------- #------------------------------------------------------------------------------- import pygame +import fonts #------------------------------------------------------------------------------- @@ -140,7 +141,7 @@ def __init__(self, x, y, h_pad, v_pad, orientation, number, background, buttonList): ## menu items self.menu_items = [] # List of menu items - self.font = pygame.font.Font(None, 32) # Font to use + self.font = fonts.serif_normal # Font to use self.x = x # Top left corner (of surface) self.y = y # relative to the screen/window