• Advertisement
Sign in to follow this  

making a 3d font editor.

This topic is 4009 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

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
Advertisement
I think you need to use GDI functions like LoadFont() to get the font info out of the file - IIRC .ttf is a very complicated format.

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
Sign in to follow this  

  • Advertisement