1,105,585 Community Members

Font to Coordinates

Member Avatar
Labdabeta
Master Poster
769 posts since Feb 2011
Reputation Points: 161 [?]
Q&As Helped to Solve: 42 [?]
Skill Endorsements: 6 [?]
 
0
 

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)

Member Avatar
dexblack
Newbie Poster
15 posts since Feb 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
1
 

Start here

Member Avatar
Labdabeta
Master Poster
769 posts since Feb 2011
Reputation Points: 161 [?]
Q&As Helped to Solve: 42 [?]
Skill Endorsements: 6 [?]
 
0
 

Thank you!

Question Answered as of 2 Years Ago by dexblack
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: