wglUseFontBitmaps font position

I found out that wglUseFontBitmaps is a bitch. If it truly does use glBitmap, as it seems we all have that impression (glDrawPixels would have been extremely slow (slower than glBtmap) on old cards).

Here’s another one. Let’s assume you do this:

glRasterPos2i(x, y);

****! the text may be rendered below the y Ras-position for characters that go below the line --> g j p y compare to fdasqwert

It must be using the displacement parameters in glBitmap.

The problem is, I dont know what those values are!!! I need them to be able to properly highlight the text.

Unless if I can use some other trick.


from what i understand, you’re having trouble positioning your text? if yes, then have you set your projection to ortho mode?

RTFM, I would say.
Check out the glyph informations in the manual page on wglUseFontBitmaps: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opengl/ntopnglr_2r8z.asp

The fine manual was read but I missed one tiny detail there!

Well I hope the parameters are correct. I’ll try it tomorrow and see.

PS: thanks for replying. for a moment there I thought I was facing a mystery.