Page 1 of 1

Change font size?? ( SOLVED )

Posted: Mon Nov 07, 2005 9:09 am
by r3i
How can I change the font size of a IGUIStaticText??

Posted: Mon Nov 07, 2005 10:42 am
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.

Posted: Mon Nov 07, 2005 11:09 am
by r3i
Thank You JP it works fine now ;)

Posted: Tue Nov 08, 2005 7:24 am
by Barts_706
Thank you too. I was about to ask the same question, but 'Search' is your friend.