C#er
October 10th, 2005, 08:10 AM
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.
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.