我有一个大问题,希望你能帮助我。
我正在将一款游戏从Linux移植到Windows,使用MinGW可以正常工作(除了一些崩溃问题,但这不是我的问题)。
游戏使用Fontconfig(2.4.2-3)、Cairo(1.8.8)和Pango(1.26.0)来呈现文本。
问题在于,使用Visual Studio时,我无法看到字体(所有字符都显示为小方框),输出中显示如下:
** (performous.exe:4344): CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
'D:\Project\PerformousInstall-vc\etc\pango\pango.modules'
You should create this file by running:
pango-querymodules > 'D:\Project\PerformousInstall-vc\etc\pango\pango.modules'
** (performous.exe:4344): WARNING **: couldn't load font "Bitstream Charter Not-Rotated 18px", falling back to "Sans Not-Rotated 18px", expect ugly output.
** (performous.exe:4344): WARNING **: couldn't load font "Sans Not-Rotated 18px", falling back to "Sans Not-Rotated 18px", expect ugly output.
** (performous.exe:4344): WARNING **: All font fallbacks failed!!!!
** (performous.exe:4344): WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderWin32', script='latin'
** (performous.exe:4344): WARNING **: All font fallbacks failed!!!!
这个错误只出现在我使用 Visual Studio 时,但因为它已经帮我修复了很多其他的 bug,我非常有兴趣让字体在 VS 下工作。
如果我漏掉了什么或者没有发帖子,请原谅,因为我不知道该发布什么。
有人有一些提示吗?
提前感谢您的帮助,如果我的表达不清楚,请随时问我。