How to get rid of error FontManager::getFont - A Font object
Posted: Wed Jun 06, 2007 04:51
Any ideas on how do I get rid of this error?
Exception: FontManager::getFont - A Font object with the specified name 'Tahoma-12.font' does not exist within the system
Offending code in ceguifont.h
float getLineSpacing (float y_scale = 1.0f) const
{ return d_height * y_scale; }
Called by the following code (mine):
...setup resource paths, etc...
CEGUI::SchemeManager::getSingleton().loadScheme("TaharezLook.scheme");
CEGUI::FontManager::getSingleton().createFont("Tahoma-12.font");
CEGUI::System::getSingleton().setDefaultFont("Tahoma-12.font");
Exception: FontManager::getFont - A Font object with the specified name 'Tahoma-12.font' does not exist within the system
Offending code in ceguifont.h
float getLineSpacing (float y_scale = 1.0f) const
{ return d_height * y_scale; }
Called by the following code (mine):
...setup resource paths, etc...
CEGUI::SchemeManager::getSingleton().loadScheme("TaharezLook.scheme");
CEGUI::FontManager::getSingleton().createFont("Tahoma-12.font");
CEGUI::System::getSingleton().setDefaultFont("Tahoma-12.font");