Jump to content

Recommended Posts

Posted

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.

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

Posted

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.

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...