Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

BauerGL

Creating bitmap fonts with SDL

This topic is 5971 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

Hi, I want to make bitmap fonts using SDL. And all the tutorials about bitmap fonts have been in "pure" Win32 code using HDCs and HWNDs, which don''t come with SDL. So my question is how to print 2D text using either SDL or OpenGL. I''m having OpenGL for graphics, and SDL for window management. Thanks! CUselessStuff::NiftyQuote();

Share this post


Link to post
Share on other sites
Advertisement
SDL does not provide font management.

Though, there is a portable way of doing simple font bitmaps : using a big picture as a texture.
The texture has to be diveded in little squares, where each square represents one character.

NeHe uses this technique too.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!