ZioRed Posted May 11, 2010 Share Posted May 11, 2010 I see no methods which returns a pointer to the current font set, so it is a bit boring to build a GUI with different fonts. What I would like to do for any control on the GUI is to store the current font, change to the one used for the control and then restore the previous. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Masterxilo Posted May 11, 2010 Share Posted May 11, 2010 +, getter-methods are always good. There are many of those small functions that should just be there. Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Flexman Posted May 11, 2010 Share Posted May 11, 2010 I ended up making a GameFont class as a wrapper for the 2D font drawing. Once you change from the default font there's no obvious way to get it back. I don't think your missing anything. Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
ZioRed Posted May 11, 2010 Author Share Posted May 11, 2010 I ended up making a GameFont class as a wrapper for the 2D font drawing. Once you change from the default font there's no obvious way to get it back. I don't think your missing anything. I can do it manually as you told: a wrapper class and use that for font loading/setting/getting, I can easily do it directly in the C# wrapper source but a proper engine method could be useful to all languages. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.