diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-15 10:03:47 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-15 10:03:47 +0200 |
commit | 94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef (patch) | |
tree | 7581744d7ccec333a2e61de8246b89f5b9f630e5 | |
parent | 532454ebada0ca776e8136450ed8810bc22d210b (diff) | |
download | MusicSampler-94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef.tar.gz MusicSampler-94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef.tar.zst MusicSampler-94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef.zip |
Add fonts
-rw-r--r-- | Ubuntu-Regular.ttf | bin | 0 -> 353824 bytes | |||
-rw-r--r-- | helpers/__init__.py | 2 | ||||
-rw-r--r-- | music_sampler.spec | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/Ubuntu-Regular.ttf b/Ubuntu-Regular.ttf new file mode 100644 index 0000000..45a038b --- /dev/null +++ b/Ubuntu-Regular.ttf | |||
Binary files differ | |||
diff --git a/helpers/__init__.py b/helpers/__init__.py index 7fbfb99..c42b378 100644 --- a/helpers/__init__.py +++ b/helpers/__init__.py | |||
@@ -106,7 +106,7 @@ class Key: | |||
106 | def draw(self, background_surface): | 106 | def draw(self, background_surface): |
107 | self.surface = self.square().surface() | 107 | self.surface = self.square().surface() |
108 | 108 | ||
109 | police = font.Font(None, 20) | 109 | police = font.Font("Ubuntu-Regular.ttf", 14) |
110 | text = police.render(self.key_sym, True, (0,0,0)) | 110 | text = police.render(self.key_sym, True, (0,0,0)) |
111 | self.surface.blit(text, (5,5)) | 111 | self.surface.blit(text, (5,5)) |
112 | background_surface.blit(self.surface, self.position) | 112 | background_surface.blit(self.surface, self.position) |
diff --git a/music_sampler.spec b/music_sampler.spec index 2f6f04c..3c85a2a 100644 --- a/music_sampler.spec +++ b/music_sampler.spec | |||
@@ -4,7 +4,7 @@ block_cipher = None | |||
4 | 4 | ||
5 | a = Analysis(['music_sampler.py'], | 5 | a = Analysis(['music_sampler.py'], |
6 | binaries=None, | 6 | binaries=None, |
7 | datas=[('config.yml', '.')], | 7 | datas=[('config.yml', '.'), ('Ubuntu-Regular.ttf', '.')], |
8 | hiddenimports=[ | 8 | hiddenimports=[ |
9 | 'six', | 9 | 'six', |
10 | 'packaging', | 10 | 'packaging', |