Change font size?? ( SOLVED )

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
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

Change font size?? ( SOLVED )

Post by r3i »

How can I change the font size of a IGUIStaticText??
Last edited by r3i on Mon Nov 07, 2005 11:08 am, edited 1 time in total.
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You need to import the a new (larger) font from a bmp which you can get from using the Font tool in the irrlicht tools folder (i think thats where it is).

Then use this code:
env->getSkin()->setFont(env->getFont("font.bmp"));

To get the font from the irrlicht tool to a bmp file use the button in the tool to copy it to the clipboard, then open something like paint and paste it in and save it.

Hope that helps you out.
Image Image Image
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

Post by r3i »

Thank You JP it works fine now ;)
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
Barts_706
Posts: 26
Joined: Tue Nov 01, 2005 1:20 am

Post by Barts_706 »

Thank you too. I was about to ask the same question, but 'Search' is your friend.
Post Reply