我使用python 2.5和pygame制作游戏。无法使用pygame创建游戏
但是,我无法完成制作。 ,因为这个错误发生。
C:\Python26\TypeType\src\dist\Main.exe:8: RuntimeWarning: use font: MemoryLoadLibrary failed loading pygame\font.pyd
Traceback (most recent call last):
File "Main.py", line 8, in <module>
File "pygame\__init__.pyo", line 70, in __getattr__
NotImplementedError: font module not available
Traceback (most recent call last):
File "Main.py", line 8, in <module>
File "pygame\sysfont.pyo", line 253, in SysFont
RuntimeError: default font not found 'freesansbold.ttf'
也许我认为这是因为它使用了一个名为sysfont的对象。 (因为我的程序没有在执行文件中使用sysfont,并且能够从未安装Python的PC启动) 有什么问题。 抱歉,我是begginer。
编辑 我能找到的python2.5 \ LIB \站点包\ pygame的\ freesansbold.ttf
但同样的错误发生.. 我可以在哪里复制freesansbold.ttf
不错!我来试试 – freddiefujiwara 2009-05-22 01:55:28