aboutsummaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-15 10:03:47 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-15 10:03:47 +0200
commit94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef (patch)
tree7581744d7ccec333a2e61de8246b89f5b9f630e5 /helpers
parent532454ebada0ca776e8136450ed8810bc22d210b (diff)
downloadMusicSampler-94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef.tar.gz
MusicSampler-94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef.tar.zst
MusicSampler-94b508ae92f42e61e5f4c4b1c3a06e58694ca8ef.zip
Add fonts
Diffstat (limited to 'helpers')
-rw-r--r--helpers/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)