Jump to content
  • Advertisement
Sign in to follow this  
CSharper

Font Appearance

This topic is 4756 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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. I don't know what's going on, anyone can help me?

Share this post


Link to post
Share on other sites
Advertisement
I don't know for sure, but I think the font size may be too big. Also, how are you creating the font. I know that there is a font deviation argument in the wglUseFontOutlines function. If you make that too high, the fonts look ugly. That may have something to do with it.

Share this post


Link to post
Share on other sites
Please post the code which builds your lists - maybe there's is the problem. Additionally you might think about enabling blending to get things right.

Share this post


Link to post
Share on other sites
ok, this is the code:

void ImprimeTexto(unsigned int iFont, const char* cValue)
{
if(iFont == 0) MessageBox(0,"Fodeu", "tela",0);
glPushAttrib(GL_LIST_BIT);
glListBase(iFont - 32);
glCallLists(strlen(cValue), GL_UNSIGNED_BYTE, cValue);
glPopAttrib();
}

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!