Sign in to follow this  
try_catch_this

Help me fix my fonts!

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.

F451

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this