From 94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 15 Jun 2016 10:03:47 +0200 Subject: Add fonts --- Ubuntu-Regular.ttf | Bin 0 -> 353824 bytes helpers/__init__.py | 2 +- music_sampler.spec | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 Ubuntu-Regular.ttf 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', -- cgit v1.2.3