English 中文(简体)
Font rendering problems using Pango + Cairo + Fontconfig using Visual Studio, under GCC works fine
原标题:

I have a big problem, and I hope you can help me.

I m porting a game from Linux to Windows, and using MinGW works fine (except for some crashes that I don t know how, but this is not my problem now)

Game use Fontconfig (2.4.2-3), Cairo (1.8.8) and Pango (1.26.0) to render text.

Problem is that, using Visual Studio, I can t see fonts (all characters are displayed as little box), and in the output it say me this:

** (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:ProjectPerformousInstall-vcetcpangopango.modules 
You should create this file by running:
  pango-querymodules >  D:ProjectPerformousInstall-vcetcpangopango.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!!!!

This error is only when I use Visual Studio, but because it fix me a lot of other bugs, I ll be very interested to get fonts working under VS.

Sorry if I forgot something or I haven t posted anything, but I have no idea what to post.

Someone has some hints?

Thanks in advance for help, if I don t get myself clear, feel free to ask.

最佳回答

You need to set the fonts that Pango are using to something that actually exists on a Windows machine, neither Bitstream nor Sans exist and that s what Pango is telling you (its default is Sans). Try setting it to Segoe UI and you should see text

问题回答

暂无回答




相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签