From: Jimmy R. <ji...@re...> - 2006-02-28 04:52:30
|
Elliot Temple wrote: > When I use py2exe I get this problem running my game: >=20 > Traceback (most recent call last): > File "curi's blocks.py", line 225, in ? > File "curi's blocks.py", line 91, in main > File "curi's blocks.py", line 197, in DrawPauseScreen > RuntimeError: default font not found >=20 > I don't get any problem with py2app. In my code (written a year ago, > but I'm doing py2exe now) I found: >=20 > if pygame.font: > font =3D pygame.font.Font(None, 36) > text =3D font.render(s1, 1, (255, 255, 255)) >=20 > I assume I need to copy the right font into the folder for my game. I > don't know which font is the default, or if I can just choose any and > name it something specific, or if I need to change the code. Let me > know what to do. I assume you are using pygame (which I know very little about except that people often ask about fonts when asking about pygame and py2exe) - maybe this will help: http://www.pick.ucam.org/~ptc24/pygame_py2exe.html Jimmy |