Archived

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

Creating bitmap fonts with SDL

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