Skip to main content
gamedev.net
🔒 Locked

Font Problem

Started by pi_equals_3 Dec 20, 2002 at 9:55 PM 1 replies 300+ views
Original Post
pi_equals_3
pi_equals_3
I coded a font class based on Nehe''s tutorial on 3D outline fonts. When I tried to print something using the class, the characters it outputs are one character before the ones inputted. I would normally just alter the display list base in my font build code, but every other instance of the font class in the same application output correctly. My code follows along exactly with what the tutorial says, and the problem only occurs in one font object at a time, so I dont know where to begin. If you have ANY possible solutions I can try, I would greatly appretiate it. Thanks
pi_equals_3
pi_equals_3
Hmm...I realized something else. Every font object uses the last font created in the program. CreateFont() and wglUseFontOutlines() are both passed the HDC. Can theree only be one outline font for each DC?
pi_equals_3
pi_equals_3
Hmm...I realized something else. Every font object uses the last font created in the program. CreateFont() and wglUseFontOutlines() are both passed the HDC. Can there only be one outline font for each DC?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.