From 956ce6fd3e47b2536f57f3359ebff26850f30aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 20 Jun 2016 23:38:10 +0200 Subject: Cleanup fonts --- music_sampler.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'music_sampler.py') diff --git a/music_sampler.py b/music_sampler.py index ff04fd1..8ebfaa3 100644 --- a/music_sampler.py +++ b/music_sampler.py @@ -56,12 +56,8 @@ while 1: threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start() draw_lock.acquire() - 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") surface = pygame.Surface((208, 250)).convert() surface.fill((250, 250, 250)) -- cgit v1.2.3