Sign in to follow this  
iterator

Font Geometry

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
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

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