From: Ismaƫl Bouya Date: Wed, 15 Jun 2016 08:03:47 +0000 (+0200) Subject: Add fonts X-Git-Tag: 1.0.0~104 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef;hp=532454ebada0ca776e8136450ed8810bc22d210b;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git Add fonts --- diff --git a/Ubuntu-Regular.ttf b/Ubuntu-Regular.ttf new file mode 100644 index 0000000..45a038b Binary files /dev/null and b/Ubuntu-Regular.ttf 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: 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) 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 a = Analysis(['music_sampler.py'], binaries=None, - datas=[('config.yml', '.')], + datas=[('config.yml', '.'), ('Ubuntu-Regular.ttf', '.')], hiddenimports=[ 'six', 'packaging',