diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-20 23:38:10 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-20 23:38:10 +0200 |
commit | 956ce6fd3e47b2536f57f3359ebff26850f30aea (patch) | |
tree | f1dbabd3d625bbbc638d7ac5e9a77b4061bff9b8 /music_sampler.py | |
parent | 9de92b6dd2bd906f6a64fce7c90a6aff0dbb27a2 (diff) | |
download | MusicSampler-956ce6fd3e47b2536f57f3359ebff26850f30aea.tar.gz MusicSampler-956ce6fd3e47b2536f57f3359ebff26850f30aea.tar.zst MusicSampler-956ce6fd3e47b2536f57f3359ebff26850f30aea.zip |
Cleanup fonts
Diffstat (limited to 'music_sampler.py')
-rw-r--r-- | music_sampler.py | 8 |
1 files changed, 2 insertions, 6 deletions
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: | |||
56 | threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start() | 56 | threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start() |
57 | 57 | ||
58 | draw_lock.acquire() | 58 | draw_lock.acquire() |
59 | if getattr(sys, 'frozen', False): | 59 | police = helpers.font(14) |
60 | icon_police = pygame.font.Font(sys._MEIPASS + "/Symbola.ttf", 19) | 60 | icon_police = helpers.font(14, font = "Symbola") |
61 | police = pygame.font.Font(sys._MEIPASS + "/Ubuntu-Regular.ttf", 14) | ||
62 | else: | ||
63 | icon_police = pygame.font.Font("Symbola.ttf", 19) | ||
64 | police = pygame.font.Font("Ubuntu-Regular.ttf", 14) | ||
65 | 61 | ||
66 | surface = pygame.Surface((208, 250)).convert() | 62 | surface = pygame.Surface((208, 250)).convert() |
67 | surface.fill((250, 250, 250)) | 63 | surface.fill((250, 250, 250)) |