Change the font, darnit!
Posted: Fri Oct 27, 2006 1:39 am
I tried following the tutorial but its not working at all!
and the string I'm passing it is "BigBoldArial.bmp"
BigBoldArial.bmp was created by the font tool and placed in the debug filter however the font isnt changeing I'm really confused =(
the problem is on the getFont (file); line because its not giving font anything to point to and never jumps inside the if-statement
Code: Select all
void CGuiLayer::setFont (const char * file)
{
IGUISkin* skin = guienv->getSkin();
IGUIFont* font = guienv->getFont(file);
if (font)
{
skin->setFont(font);
}
}
BigBoldArial.bmp was created by the font tool and placed in the debug filter however the font isnt changeing I'm really confused =(
the problem is on the getFont (file); line because its not giving font anything to point to and never jumps inside the if-statement