Advertisement Jump to content
Sign in to follow this  

Help me fix my fonts!

This topic is 4983 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

I am currently using outlined fonts. They come out ugly and eat cpu time. I need your help.
::SelectObject( m_Hdc, m_HFont ); // Selects The Font We Created

::wglUseFontOutlines( m_Hdc,  // Select The Current DC
                          0,  // Starting Character
               characters-1,  // Number Of Display Lists To Build
                     m_base,  // Starting Display Lists
                       0.0f,  // Deviation From The True Outlines
                       0.2f,  // Font Thickness In The Z Direction
          WGL_FONT_POLYGONS,  // Use Polygons, Not Lines
                       gmf ); // Address Of Buffer To Recieve Data
The m_HFont is created with these properties:
fp.nHeight            = -24;
fp.nWidth             = 0;
fp.nEscapement        = 0;
fp.nOrientation       = 0;
fp.fnWeight           = 0;
fp.fdwItalic          = false;
fp.fdwUnderline       = false;
fp.fdwStrikeOut       = false;
fp.fdwCharSet         = DEFAULT_CHARSET;
fp.fdwOutputPrecision = OUT_TT_PRECIS;
fp.fdwClipPrecision   = CLIP_DEFAULT_PRECIS;
fp.fdwQuality         = ANTIALIASED_QUALITY;
fp.fdwPitchAndFamily  = FF_DONTCARE|DEFAULT_PITCH;
fp.lpszFace           = new char[ strlen("Times New Roman")+1 ];
Does anyone know away to make my fonts look better using the same outlined fonts? It has to be easily implemented bcause I have alot of work to get done.

Share this post

Link to post
Share on other sites
I would think outline fonts. Check out NeHe. His tutorials deal with the main ones and his recommendation appears to be texture mapped outline fonts. To be honest with you, I haven't actually used anything other than bitmap for 2D and outline for 3D and they have been fine for me, so I can not advise you as well as I would like on other fonts and their potential to be better looking.


Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!