Sign in to follow this  
uncle_rico

Wanting to make a program that creates font textures...

Recommended Posts

I know that several of these programs exist, but I want to create my own. I was thinking of using MFC (the windows API I'm most-familiar with), with the texture creation being done with GDI. I want to also include a data file that contains the width of each character. If I can also extract hinting and kerning information too, that would be doubly-awesome. Does anyone know how to "Read" this information from the TTF files?

Share this post


Link to post
Share on other sites
Writing your own custom TTF parser is an overkill, unless you want to do it as a challenge of course. I would suggest you to get the FreeType library (freetype.org). It handles a lot of font formats transparently. All you have to do is open the font file, and extract the glyps (at a desired font size) into a series of bitmaps for rendering. FreeType caters for kerning and other advanced stuff too.

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