all repos — Legends-RPG @ cc5415b4ae455bd90a3ba7e4e0e42dc9b3e9811d

A fantasy mini-RPG built with Python and Pygame.

Experimenting with different fonts
Justin Armstrong justinmeister@gmail.com
Mon, 31 Mar 2014 22:47:06 -0700
commit

cc5415b4ae455bd90a3ba7e4e0e42dc9b3e9811d

parent

97226ef32d8c0fe20424beca13a494787cc000a4

M data/components/textbox.pydata/components/textbox.py

@@ -22,7 +22,7 @@ self.item = item

self.bground = setup.GFX[image_key] self.rect = self.bground.get_rect(centerx=400) self.arrow_timer = 0.0 - self.font = pg.font.Font(setup.FONTS['Fixedsys500c'], 22) + self.font = pg.font.Font(setup.FONTS[c.MAIN_FONT], 22) self.dialogue_list = dialogue self.index = index self.image = self.make_dialogue_box_image()
M data/constants.pydata/constants.py

@@ -25,5 +25,8 @@ LIGHT_BLUE = (0, 153, 204)

DARK_RED = (118, 27, 12) +MAIN_FONT = 'DroidSerif' + +
M data/menugui.pydata/menugui.py

@@ -18,7 +18,7 @@

class MenuGui(object): def __init__(self, level, inventory): self.level = level - self.font = pg.font.Font(setup.FONTS['Fixedsys500c'], 22) + self.font = pg.font.Font(setup.FONTS[c.MAIN_FONT], 22) self.inventory = inventory self.allow_input = False self.state = 'topmenu'
M data/shopgui.pydata/shopgui.py

@@ -19,7 +19,7 @@ self.player_inventory = level.game_data['player inventory']

self.name = level.name self.state = 'dialogue' self.no_selling = ['Inn', 'Magic Shop'] - self.font = pg.font.Font(setup.FONTS['Fixedsys500c'], 22) + self.font = pg.font.Font(setup.FONTS[c.MAIN_FONT], 22) self.index = 0 self.timer = 0.0 self.allow_input = False