Apearance of GuiStaticText

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
dgrafix
Posts: 116
Joined: Sun Nov 18, 2007 2:36 pm

Apearance of GuiStaticText

Post by dgrafix »

How do you make the StaticGuiText look different in more than one place? For example bold or different fonts. When i try and change the font for one line it just ignores it and uses whatever font was last used before it draws for all text.
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com :)
CuteAlien
Admin
Posts: 9933
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

With staticText->setOverrideFont ( yourfont) you can give each statictext an own font. You can't have several fonts within one statictext for different lines, for that you would need some RichTextElement and I think no one has written one yet.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
dgrafix
Posts: 116
Joined: Sun Nov 18, 2007 2:36 pm

Post by dgrafix »

Thanks, that worked :)
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com :)
Post Reply