Font Geometry

Started by
2 comments, last by iterator 15 years, 7 months ago
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
Advertisement
in the gpu gems 3 there is a good article about it, creating fonts from bezier curves

Paul
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
Professional C++ and .NET developer trying to break into indie game development.
Follow my progress: http://blog.nuclex-games.com/ or Twitter - Topics: Ogre3D, Blender, game architecture tips & code snippets.
Thanks Cygon, I will check that out!

This topic is closed to new replies.

Advertisement