Permalink
Browse files

Custom font

  • Loading branch information...
1 parent 5a50bdb commit 539f0aba775e693b1c2af6af28c59d1e77e96715 Carter Sande committed Sep 30, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 README.md
  2. +1 −1 TypingGame.py
  3. BIN font.ttf
View
@@ -1,2 +1,4 @@
# About TypingGame
-TypingGame is a simple typing game written in Python. It's not finished, but it's currently in working order. Please feel free to fork it and send us a pull request.
+TypingGame is a simple typing game written in Python. It's not finished, but it's currently in working order. Please feel free to fork it and send us a pull request.
+
+We use SV Basic Manual as the font for the words.
View
@@ -10,7 +10,7 @@ class TypingGameWord(pygame.sprite.Sprite):
def __init__(self, word):
pygame.sprite.Sprite.__init__(self) #initialize it as a pygame sprite
- self.font = pygame.font.Font(None,100) #make the font we'll write the word in
+ self.font = pygame.font.Font("font.ttf",40) #make the font we'll write the word in
self.originalWord = word
self.word = word
self.image = self.font.render(self.word, True, (255,255,255))
View
BIN font.ttf
Binary file not shown.

0 comments on commit 539f0ab

Please sign in to comment.