From: pin Date: Wed, 26 May 2010 12:09:11 +0000 (+0000) Subject: Plus d'utilisation de la font par défaut. X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/commitdiff_plain/d19d1fdbbf08b9ac9304d1fec0d9aa1ac9083877?ds=sidebyside Plus d'utilisation de la font par défaut. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@191 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/minwii/config.py b/src/minwii/config.py index 9313339..8d27e28 100755 --- a/src/minwii/config.py +++ b/src/minwii/config.py @@ -21,8 +21,6 @@ def _computePath(path) : pygame.font.init() -pygamedir = os.path.split(pygame.base.__file__)[0] -default_font_file = os.path.join(pygamedir, pygame.font.get_default_font()) # playingscreen @@ -37,6 +35,7 @@ ON_COLUMN_OVERSIZING = 2 ON_COLUMN_ALPHA = 1 font_file = _computePath('fonts/Arial Unicode.ttf') NOTES_FONT = pygame.font.Font(font_file, 50) +default_font_file = _computePath('fonts/freesansbold.ttf') LYRICS_FONT = pygame.font.Font(default_font_file, 80) FONT_COLOR = (0,0,0) MIDI_VELOCITY_RANGE = (64, 127)