Jump to content
  • Advertisement
Sign in to follow this  
iterator

Font Geometry

This topic is 3588 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'd like to get at the vertex/face data for fonts generated by wglUseFontOutline. I'd like to do various effects like path deform, etc and need this data. Does anyone know if there is a way to get it? If the answer is "no", then does anyone know of any resources for how to synthesize 3D fonts from True Type fonts (I really don't want to do that though!). Thanks

Share this post


Link to post
Share on other sites
Advertisement
FreeType provides that data in a simple and convenient interface.

I've used it to generate meshes of strings from TrueType fonts in my XNA content pipeline plugin. Some bezier interpolation was required to get from outline curves to vertex arrays and I had to resort to a tessellator to build meshes from the outlines, but the end result is very much worth it.

If you need some example code, feel free to browse my implementation ;)
FreeTypeFontVectorizer.cpp
FreeTypeFontTessellator.cpp

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!