Jump to content
  • Advertisement
Sign in to follow this  
try_catch_this

Help me fix my fonts!

This topic is 4889 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
Advertisement
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.

F451

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!