text problems with MyGUI 3.2.1 and ogre 1.9.0

Pellaeon

12-11-2014 09:53:56

Hi,

I used MyGUI 3.2.0 and Ogre 1.8.1 for al long time and all worked fine. Now, I updated to Ogre 1.9.0 and the new mygui version. Unfortunately, I see no text with this new version.
I use the controls "Button" and "StaticText" with a custom font. The button itself is rendered, but as I mentioned out: I see no text.

I have no idea where to search the problem because it worked fine with the old versions. Any ideas, suggestions. What could be the problem?


Best regards

Pellaeon

Crystal Hammer

12-11-2014 14:32:07

Did you maybe forget to set the MYGUI_USE_FREETYPE to 1 in CMake of MyGui project ?

Pellaeon

13-11-2014 08:27:26

Hi,

I built MyGui without the freetype support. Therefore, this is not the problem.
I tested the Demo_Gui which ships with the mygui source and it works well. So it seems there is no general problem with mygui 3.2.1 and ogre 1.9.
Are there some changes in then ew mygui version relating the resource loading? I suppose it could be a problem with the resources.


Best regards

Pellaeon

Pellaeon

13-11-2014 09:02:23

Ok, it seems a truetype problem. The log says "09:58:36 | Core | Error | ResourceTrueTypeFont: TrueType font 'DejaVuSansFont_15' disabled. Define MYGUI_USE_FREETYE if you need TrueType fonts. | ..\..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 57"

But then why does the demo_gui work? I compiled the Mygui Solution without the FREETYPE flag and when starting Demo_GUI I see text. Although it uses the truetype font Dejavu?

Altren

13-11-2014 17:48:54

When MyGUI is compiled without Freetype support demos and tools use pre-generated fonts textures, not ttf file.