]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler.py
Cleanup fonts
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler.py
index ff04fd1e42d2d1d62c559cbbd5a9929b353d381b..8ebfaa3e664f9c57eb951e57682dffd4e565eb74 100644 (file)
@@ -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))