954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

add new fonts to pygame

I was wondering if you could add new fonts to pygame
and how you should do it.
Does any one know how to do it?

Laurence26
Newbie Poster
5 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

not sure what you mean by adding fonts,
but when you create a font object, you can specify a pygame font, or a path to a custom font of your choice.

font1 = pygame.font.Font("C:\customfont.ttf", 12)
a1eio
Junior Poster
141 posts since Aug 2005
Reputation Points: 26
Solved Threads: 25
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You