multiple fonts using the gui

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
specialtactics
Posts: 17
Joined: Tue Dec 09, 2003 9:03 am
Location: Germany

multiple fonts using the gui

Post by specialtactics »

Hi,

i want to use different Fonts in my game. One way I could do that is load font1, font2, etc. and use font1->draw(...).
But is there a way to use the IGUI... stuff with multiple fonts? That's much nicer because irrlicht manages its rendering and the available controlelements are quite convenient. But as far as I could see, there can only be 1 IGUIEnvironment which only has 1 Font, so changing it changes the font for all GUIElements. :(
specialtactics
Posts: 17
Joined: Tue Dec 09, 2003 9:03 am
Location: Germany

Post by specialtactics »

:)
just 5 minutes later i found the function that i overlooked:

Code: Select all

void IGUIStaticText::setOverrideFont(IGUIFont* font=0);
which does exactly what i was looking for. problem solved.
Post Reply