Jump to content
  • Advertisement


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


How does this idea sound...

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

Im sure people have thought of this before, but this was an idea I had for doing a text system in my game: I read how to do text with GDI in the article hear on GameDev. And Ive also heard of Bitmap fonts (which I assume is making the font on bitmaps and blt them with hardware acc). Well what I came up with, is creating the surfaces for each character, and blitting each character thru GDI onto those surfaces, then using blt to get the characters on the screen. Its seems this way would be fast, not require disk space for the alphabet, and wouldnt be too hard to code. What do you guys think dave ratti

Share this post

Link to post
Share on other sites
It works well.

I''ve created a single bitmap with all the characters on it. After loading the bitmap to a surface it is possible to blit individual characters to another surface.

Once you''ve created your character set, it can be used in both 2D and 3D without having to call the windows GUI.

- Better the question than the answer

Share this post

Link to post
Share on other sites

Yes, this works perfectly. You''re using GDI to draw the true-type fonts, then blit them later when you need them.

I''ve seen an example of this recently but I can''t remember where. I''ll come back later!



Check out my project at: www.btinternet.com/~Matthew.Bennett

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!