]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Add fonts
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 15 Jun 2016 08:03:47 +0000 (10:03 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 15 Jun 2016 08:03:47 +0000 (10:03 +0200)
Ubuntu-Regular.ttf [new file with mode: 0644]
helpers/__init__.py
music_sampler.spec

diff --git a/Ubuntu-Regular.ttf b/Ubuntu-Regular.ttf
new file mode 100644 (file)
index 0000000..45a038b
Binary files /dev/null and b/Ubuntu-Regular.ttf differ
index 7fbfb99b59bb665db42fa533df9e807641f81295..c42b378817aa26e8898b2920e0d2989048494e1e 100644 (file)
@@ -106,7 +106,7 @@ class Key:
     def draw(self, background_surface):
         self.surface = self.square().surface()
 
-        police = font.Font(None, 20)
+        police = font.Font("Ubuntu-Regular.ttf", 14)
         text = police.render(self.key_sym, True, (0,0,0))
         self.surface.blit(text, (5,5))
         background_surface.blit(self.surface, self.position)
index 2f6f04c23ab4acd92b0a0eadf80982ff63258924..3c85a2ac298e9155d8cfbbb6c82607c8e949eb12 100644 (file)
@@ -4,7 +4,7 @@ block_cipher = None
 
 a = Analysis(['music_sampler.py'],
              binaries=None,
-             datas=[('config.yml', '.')],
+             datas=[('config.yml', '.'), ('Ubuntu-Regular.ttf', '.')],
              hiddenimports=[
                'six',
                'packaging',