Loading FOnt Problem

Jo0oker

01-04-2010 22:57:22

Hello Community,
i have a problem while loading fonts. Or, i think it is an problem with loading fonts!

In this line:

myTextBox.SetParameter("font_name", "console");


My application crashes with the following error:




I have created the font console.fontdef in the font folder:

console
{
type truetype
source Arial.ttf
size 32
resolution 55
}


It would be very great, if some one can help my with my problem!

Greats,
Jo0oker

GantZ

02-04-2010 07:56:31

could you post your ogre.log ? the error is not really explicit enough. also check out your stacktrace when in debug to see if you have any error raised.

Jo0oker

02-04-2010 17:32:23

Here are the important Lines from the Ogre.log:


18:57:05: Finished parsing scripts for resource group Internal
18:57:05: TerrainSceneManager: Registered a new PageSource for type Heightmap
18:57:05: OGRE EXCEPTION(5:ItemIdentityException): Could not find font sample in TextAreaOverlayElement::setFontName at ..\src\OgreTextAreaOverlayElement.cpp (line 360)
18:57:06: Unregistering ResourceManager for type BspLevel
18:57:06: *-*-* OGRE Shutdown


Greats,
Jo0oker

Jo0oker

03-04-2010 22:33:19

I solved my Problem, this helps: http://test.ogitor.org/tiki/Simple+text+in+MOGRE

Thanks.
Jo0oker