• Advertisement
Sign in to follow this  

[SDL] Fonts

This topic is 3508 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
BMFont might be of use to you. <aside>Based on my typing, I'm drunker than I thought.</aside>

Share this post


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

  • Advertisement