CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: Font displaying

  1. #1
    Join Date
    Oct 2005
    Posts
    173

    Question Font displaying and to accent

    Hi for all

    Fellows, in my application I'm drawing a font(arial, size: 50).
    When the font is displayed their appearance is not so good, it seems that some parts of letters are vertically cutted.
    I've put the glHint function like this:
    glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
    And this is my method that draws the font:
    void ImprimeTexto(unsigned int iFont, const char* cValue)
    {
    if(iFont == 0) MessageBox(0,"Fodeu", "tela",0);
    glPushAttrib(GL_LIST_BIT);
    glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_NICEST);
    glListBase(iFont - 32);
    glCallLists(strlen(cValue), GL_UNSIGNED_BYTE, cValue);
    glPopAttrib();
    }
    My screen resolution is 1024x768.

    Other doubt is related with accentuation of a specific letter. When I put a accentted letter it's not displayed or a character totally strange is displayed

    Thanks for help.
    Last edited by C#er; October 10th, 2005 at 08:18 AM. Reason: insert another doubt that is related with the theme

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured