PDA

View Full Version : problem regarding font metrics



saileshksaha
07-19-2001, 07:28 PM
Hii Alll
I have a problem regarding font metrics.
I have to simulate the keyboard in one of my applications.
To do so i have to move the curson as soon as any key is pressed. But the problem is i need to move the cursor more when lets say 'w' is typed in comparison to 'i'. So on with many other alphabets. How do we go about this.
Please help me. Is there any concpet of font metrics which tells us about the width and height of fonts.
Thanks in advance.

Sailesh

Eric
07-19-2001, 11:11 PM
Look at the following functions in MSDN:

GetTextExtentPoint32
GetTextMetrics

But what the hell is the link with OpenGL ???

Regards.

Eric