Could not find font DebugFont

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
jay81
Gnoblar
Posts: 8
Joined: Wed Jan 24, 2018 3:15 am

Could not find font DebugFont

Post by jay81 »

Ogre Version: 2.1
OS: Fedora (Linux)

Error: An exception has occured: OGRE EXCEPTION(5:ItemIdentityException): Could not find font DebugFont in TextAreaOverlayElement::setFontName at /path/to/build/ogre/Components/Overlay/src/OgreTextAreaOverlayElement.cpp (line 362)

I am using absolute paths in the resources2.cfg file and the zip file is at the location listed in the resources2.cfg. I'm assuming that the error means that the application was not able to find the font file, but I'm not certain what could cause the error. I thought that maybe it was a permissions thing so I chmod 777 the zip, but it had no effect. I'm probably doing something wrong, but it isn't obvious to me yet.

resources2.cfg

Code: Select all

[Essential]
Zip=/path/to/project/datafiles/Media/packs/DebugPack.zip
Ogre.log - last 21 lines

Code: Select all

22:25:40: Registering ResourceManager for type Texture
22:25:40: DefaultWorkQueue('Root') initialising on thread main.
22:25:40: Particle Renderer Type 'billboard' registered
22:25:40: OverlayElementFactory for type Panel registered.
22:25:40: OverlayElementFactory for type BorderPanel registered.
22:25:40: OverlayElementFactory for type TextArea registered.
22:25:40: Registering ResourceManager for type Font
22:25:40: Parsing scripts for resource group Autodetect
22:25:40: Finished parsing scripts for resource group Autodetect
22:25:40: Creating resources for group Autodetect
22:25:40: All done
22:25:40: Parsing scripts for resource group General
22:25:40: Finished parsing scripts for resource group General
22:25:40: Creating resources for group General
22:25:40: All done
22:25:40: Parsing scripts for resource group Internal
22:25:40: Finished parsing scripts for resource group Internal
22:25:40: Creating resources for group Internal
22:25:40: All done
22:25:40: OGRE EXCEPTION(5:ItemIdentityException): Could not find font DebugFont in TextAreaOverlayElement::setFontName at /path/to/build/ogre/Components/Overlay/src/OgreTextAreaOverlayElement.cpp (line 362)
22:25:40: WARNING: GraphicsSystem::deinitialize() not called!!!
Thank you for taking the time to review my issue,
Jay
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5298
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: Could not find font DebugFont

Post by dark_sylinc »

At no point in your log there is something like this:

Code: Select all

14:20:29: Creating resource group Essential
14:20:29: Added resource location '/home/matias/Projects/SDK/OgreLatest/Samples/Media/packs/DebugPack.zip' of type 'Zip' to resource group 'Essential'
Which means you could be:
  • Loading resources2.cfg too late
  • Loading the wrong resources2.cfg
  • Not loading it at all
  • Incorrectly loading resources2.cfg
Cheers
jay81
Gnoblar
Posts: 8
Joined: Wed Jan 24, 2018 3:15 am

Re: Could not find font DebugFont

Post by jay81 »

Ah ha. Thank you so much! I will look into it right away.
jay81
Gnoblar
Posts: 8
Joined: Wed Jan 24, 2018 3:15 am

Re: Could not find font DebugFont

Post by jay81 »

You were correct. I was not loading the resources2.cfg file. Thank you again!
Post Reply