Jump to content
  • Advertisement
Sign in to follow this  
Kenny77

[SDL] Fonts

This topic is 3603 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've heard of using True Type fonts with SDL, but how can I get a custom Bitmap font in a game?

Share this post


Link to post
Share on other sites
Advertisement
I once used this tutorial to create my own bitmap font functionality.

Assuming you are also using C++:
I created a class CFont that loads the bitmap and parses it. In my graphics class CGraphics I created a function to render strings using the font. I'll post my code if you want, it's not extremely complicated.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!