Jump to content
  • Advertisement

Archived

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

Ratman

How does this idea sound...

This topic is 6761 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
Advertisement
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.

Y
- Better the question than the answer

Share this post


Link to post
Share on other sites
Hi,

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!

Bye

Matt


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.

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!