PDA

View Full Version : wglUseFontBitmaps font position



V-man
05-11-2002, 06:35 AM
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);
RenderTheText();

****! 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.

V-man

nomad
05-14-2002, 07:29 PM
from what i understand, you're having trouble positioning your text? if yes, then have you set your projection to ortho mode? http://www.opengl.org/discussion_boards/ubb/wink.gif

Relic
05-14-2002, 11:53 PM
RTFM, I would say. http://www.opengl.org/discussion_boards/ubb/wink.gif
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

V-man
05-15-2002, 06:30 PM
The fine manual was read http://www.opengl.org/discussion_boards/ubb/smile.gif 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.

V-man