Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 使用Pango+;开罗+;Fontconfig使用VisualStudio,在GCC下运行良好_Visual Studio_Mingw_Cairo_Pango - Fatal编程技术网

Visual studio 使用Pango+;开罗+;Fontconfig使用VisualStudio,在GCC下运行良好

Visual studio 使用Pango+;开罗+;Fontconfig使用VisualStudio,在GCC下运行良好,visual-studio,mingw,cairo,pango,Visual Studio,Mingw,Cairo,Pango,我有个大问题,希望你能帮我 我正在将一个游戏从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 b

我有个大问题,希望你能帮我

我正在将一个游戏从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!!!!
这个错误只有在我使用VisualStudio时才会出现,但因为它修复了很多其他错误,所以我非常有兴趣让字体在VS下工作

对不起,如果我忘了什么或我没有发布任何东西,但我不知道该发布什么

有人有什么提示吗


提前感谢您的帮助,如果我不清楚,请尽管问。

您需要将Pango使用的字体设置为Windows计算机上实际存在的字体,既不存在Bitstream也不存在SAN,这是Pango告诉您的(默认为SAN)。尝试将其设置为Segoe UI,您应该会看到文本

谢谢您的回复,我尝试过这样做,现在我“仅”出现此错误:*(performous.exe:4344):警告**:无法选择字体,希望输出不美观。引擎类型='PangoRenderWin32',script='latin'不知道如何解决它。也许PS:也尝试过“Arial”和“Verdana”,没有效果。模块错误怎么办?GooGeGo在GNOMER IRC“Pang-Pango”或Poto列表中找不到任何有用的东西,那里的人真的很有帮助,友好的,问题解决了:在VisualC++的Pango目录下复制生成的“Pang-*”到Visual C++的PANGO目录,每行四的倒数第二行,编译和所有的工作。如果有人遇到麻烦,请随时与我联系。谢谢保罗的回答