Problem regarding font metrics....

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 cursor 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

There are several ways to get the metrics for a font: check your widget set - In GTK I can simply ask it for the width of a string, or the height of a character set.

Chris

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.