http://i.imgur.com/dgjUVG1.png
However, I ran into a problem where Font::getGlyphAspectRatio was always returning 1.0f due to an empty mCodePointMap member variable, thus I am unable to compute the width of a string.
The following fixes the problem,
Code: Select all
if (Ogre::Font* font = (Ogre::Font*)Ogre::FontManager::getSingleton().getByName("SdkTrays/Value").getPointer())
{
font->load();
}
However, I do not believe this is the intended solution as I would expect this to be automated via initialiseAllResourceGroups or something similar. Thanks in advance if anyone can point me in the right direction.