We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,408 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Font to Coordinates

How can I get the coordinates of the output of a truetype font. I need to write a function like so:

struct CartesianCoord{float x,float y};
CartesionCoord *printfont(const char *filename,char ch, int &len)
{
    /*Read the font in filename.ttf and convert it to a set of vertices describing the resulting shape. Do this for the letter 'ch' and return an array of coordinates describing it. len stores the length of this returned array.*/
}

I think I need to know more about .ttf file formats but I do not know where to begin! (Yes I have tried googling it)

2
Contributors
2
Replies
1 Week
Discussion Span
1 Year Ago
Last Updated
3
Views
Question
Answered
Labdabeta
Practically a Master Poster
615 posts since Feb 2011
Reputation Points: 27
Solved Threads: 31
Skill Endorsements: 1

Start here

dexblack
Newbie Poster
15 posts since Feb 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Thank you!

Labdabeta
Practically a Master Poster
615 posts since Feb 2011
Reputation Points: 27
Solved Threads: 31
Skill Endorsements: 1
Question Answered as of 1 Year Ago by dexblack

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0598 seconds using 2.68MB