Jump to content

  • Log In with Google      Sign In   
  • Create Account


[IrrLicht] How can I change the size of font


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 anye3000   Members   -  Reputation: 121

Like
0Likes
Like

Posted 22 October 2012 - 05:09 AM

I encounter a question about how to change the size of font [irrlicht-1.7.3], need a function like SetScale(f32 scale), the size of font change over time. I just touch with IrrLicht less a week. so what can I do? inherit some class or ?in detail, Thanks in advance.

Sponsor:

#2 Azalrion   Members   -  Reputation: 306

Like
1Likes
Like

Posted 05 November 2012 - 04:46 AM

I encounter a question about how to change the size of font [irrlicht-1.7.3], need a function like SetScale(f32 scale), the size of font change over time. I just touch with IrrLicht less a week. so what can I do? inherit some class or ?in detail, Thanks in advance.


You can't directly, the standard way in irrlicht is you use the font generator tool provided and create the different sizes that you need and then load the instance you need for the correct size. If you don't want to do that what you can do is use the class for multi byte font rendering http://irrlicht.sour...pic.php?t=37296 that can be used instead and with ttf fonts which allows you to set the size when creating the font.

Edited by Azalrion, 05 November 2012 - 06:15 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS