Archived

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

Lesson 13 Bitmapped fonts

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

I am somewhat confused on whats going on here: // Selects The Font We Want oldfont = (HFONT)SelectObject(hDC, font); // Builds 96 Characters Starting At Character 32 wglUseFontBitmaps(hDC, 32, 96, base); // Selects The Font We Want SelectObject(hDC, oldfont); // Delete The Font DeleteObject(font); Is he selecting the new font we made and storing the old one, making some glfont thingy with the open gl function and then selecting the default we started with again? Is there a description somewhere of what wglUseFontBitmaps does exactly? and what happens if you don''t reselect the oldfont? Thanx, Christopher

Share this post


Link to post
Share on other sites
Yes. He selects in the new font, creates a display list based on that font, then puts the old font back into place.

---
Make it work.
Make it fast.

"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book

Share this post


Link to post
Share on other sites