• Advertisement
Sign in to follow this  

Changing font size in Irrlicht

This topic is 4248 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I started using Irrlicht recently, because managing my own piss-poor renderer was just taking time away from actually developing a game. However, I have had a few problems. Most recently, I added the HUD to my game, but I can't figure out how to draw text of different sizes. I'm using the IGUIFont::draw() method. For instance, let's say I want the title of a particular screen at the top in big, bold letters. I don't want to use a pre-rendered image, because I want to generate the text pseudo-dynamically. So, basically, how do I change the font size in Irrlicht? I'm going to bed soon, so I'll reply as soon as possible tomorrow. Thanks in advance, TW

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
You don't. Just generate a new bigger font using the irrFontTool provided in the SDK and use that font for your heading.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
You don't. Just generate a new bigger font using the irrFontTool provided in the SDK and use that font for your heading.


Oh! Well, I wish I had known that earlier! I googled every combination of irrlicht and font and size that I could think of, but didn't read about that.

I'll try it tonight and post back any other problems to this thread, in case anybody else comes to exactly the same problem as I did.

Thanks a bundle!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Use the truetype font patch.
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=3995

I fount it very usefull.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement