Jump to content
  • Advertisement
Sign in to follow this  
ludacris

smoothing fonts with wglUseFontOutlines

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

hello all I'm havig troubles with the wglUseFontOutlines api function. when i pass WGL_FONT_LINES to it and i use glenable(line_smooth) the text appears antialiased, BUT the letters are hollow. I tried maping a texture over the text, but the result was that the outline of the font become textured and the letters remain hollow. how i could fill them up ? help please wglUseFontOutlines( h_dc, 0, 255, FontDl, 0, 0, WGL_FONT_LINES , // NOT WGL_FONT_POLYGONS - they are not smooth @gmf); the result Image Hosted by ImageShack.us

Share this post


Link to post
Share on other sites
Advertisement
I don't know anything about this subject, but I would assume that using WGL_FONT_POLYGONS and enable polygon smoothing would work.

Share this post


Link to post
Share on other sites
glEnable(GL_POLYGON_SMOOTH) doesnt work at all, but glEnable (GL_LINE_SMOOTH) and glEnable (GL_BLEND) and glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) enables line smoothing.

this is the result with line smoothing enabled and WGL_FONT_LINES, it is antialiased, but the letters are hollow.



what colud be done to fill the hollow letters withouth loosing the antialias effect ?

this is the result with WGL_FONT_POLYGONS , it is not smooth although i use glEnable(GL_POLYGON_SMOOTH)

Share this post


Link to post
Share on other sites
Try using GL_POLYGON_SMOOTH, but with blending enabled. I seem to remember blending being necessary for it to work.

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!