Skip to content

Commit

Permalink
Make all fonts default to default.ttf if they are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Aug 15, 2010
1 parent 0ac3802 commit 15446a1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/Data.py
Expand Up @@ -184,7 +184,7 @@ def __init__(self, resource, svg):
fontSize = [44, 108, 34, 32, 30]

if asciiOnly:
font = resource.fileName("default.ttf")
font = resource.fileName(os.path.join("themes",themename,"default.ttf"))
bigFont = resource.fileName("title.ttf")
else:
Log.debug("Main font International.ttf used!")
Expand Down Expand Up @@ -260,19 +260,26 @@ def __init__(self, resource, svg):

if self.fileExists(os.path.join("themes",themename,"songlist.ttf")):
songListFont = resource.fileName(os.path.join("themes",themename,"songlist.ttf"))
else:
elif self.fileExists(os.path.join("themes",themename,"menu.ttf")):
songListFont = menuFont
else:
songListFont = font


if self.fileExists(os.path.join("themes",themename,"songlist.ttf")):
shadowfont = resource.fileName(os.path.join("themes",themename,"songlist.ttf"))
else:
elif self.fileExists(os.path.join("themes",themename,"menu.ttf")):
shadowfont = menuFont

else:
shadowfont = font

#blazingamer
if self.fileExists(os.path.join("themes",themename,"streakphrase.ttf")):
streakFont2 = resource.fileName(os.path.join("themes",themename,"streakphrase.ttf"))
else:
elif self.fileExists(os.path.join("themes",themename,"menu.ttf")):
streakFont2 = menuFont
else:
streakFont2 = font

#blazingamer:Reorganized
if self.theme == 0:
Expand Down

0 comments on commit 15446a1

Please sign in to comment.