- if getattr(sys, 'frozen', False):
- icon_police = pygame.font.Font(sys._MEIPASS + "/Symbola.ttf", 19)
- police = pygame.font.Font(sys._MEIPASS + "/Ubuntu-Regular.ttf", 14)
- else:
- icon_police = pygame.font.Font("Symbola.ttf", 19)
- police = pygame.font.Font("Ubuntu-Regular.ttf", 14)
+ police = helpers.font(14)
+ icon_police = helpers.font(14, font = "Symbola")