【发布时间】:2011-09-16 14:23:17
【问题描述】:
我使用了 Pygame 网站上的 Pygame2exe 并解决了 .dlls 的问题,但仍然存在错误。
我使用的唯一字体是标准的 pygame 字体 (freesansbold.ttf),我在我的游戏目录中包含了它的副本。
另外,
我使用的是 Font 类,而不是我认为可以解决我的问题的 SysFonts 类。
有什么想法吗?
C:\Python26\apple_orchard\dist\appleorchard.exe:27: RuntimeWarning: use font: MemoryLoadLibrary failed loading pygame\font.pyd
(ImportError: MemoryLoadLibrary failed loading pygame\font.pyd)
Traceback (most recent call last):
File "appleorchard.py", line 165, in <module>
File "appleorchard.py", line 27, in __init__
File "pygame\__init__.pyo", line 70, in __getattr__
NotImplementedError: font module not available
(ImportError: MemoryLoadLibrary failed loading pygame\font.pyd)
【问题讨论】: