Sign in to follow this  
directNoob

making a 3d font editor.

Recommended Posts

Hi. Currently I decided to focus on font programming. I searched the internet for useful informaion, but I couldn´t find one. My question is, how can I get font data out of the file, lets say a .ttf file for example. And where can I can those specific format description, I need to "parse" a font file? If you have any links or tutorial stuff, please post it! Grateful Alex

Share this post


Link to post
Share on other sites
Ok, I have to admit, I have absolutly no knowledge about fonts!
So, where should I start than?

To start to do anything, I need some points from the font letters or something.

@Endar:
The ftp link to the 600 page book doesn´t work!
I also found that link!
Thanks for the others.

@nemesisgeek:
you mean CreateFont() !?

But with this function I dont get any information about the exact shape of a letter. How is it with GetFontData() (also win gdi)?

Any experience with this function?


Thanks
Alex


Share this post


Link to post
Share on other sites
I recommend looking into the FreeType library. You can let it do all the hard work in parsing TrueType fonts.

In the past I've used it to render all the ASCII glyphs into a bitmap, and then in my OpenGL app drawn quads whose texture coordinates match the sub-section corresponding with the character I want to draw. You can build this up to draw strings.

More recently I've wanted the actual curve information in TrueType fonts for a vector-based font renderer. The FreeType API will give you easy access to this information as well.

The FreeType documentation can be difficult to navigate, but the information's all there.

HTH [smile]

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