[SDL] Fonts
I've heard of using True Type fonts with SDL, but how can I get a custom Bitmap font in a game?
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement