Results 1 to 2 of 2

Thread: problem regarding font metrics

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Posts
    10

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

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: problem regarding font metrics

    Look at the following functions in MSDN:

    GetTextExtentPoint32
    GetTextMetrics

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

    Regards.

    Eric

Similar Threads

  1. Gathering performance metrics
    By imported_Budric in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-16-2008, 08:48 AM
  2. performance metrics
    By rcpedersen in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 12-24-2007, 02:04 PM
  3. font problem???
    By ayortanli in forum OpenGL: Linux
    Replies: 4
    Last Post: 05-17-2005, 02:20 AM
  4. Problem regarding font metrics....
    By saileshksaha in forum OpenGL: Linux
    Replies: 1
    Last Post: 07-20-2001, 02:30 PM
  5. metrics for state change load
    By dmy in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-09-2000, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean