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)
Labdabeta
Practically a Master Poster
615 posts since Feb 2011
Reputation Points: 27
Solved Threads: 31
Skill Endorsements: 1
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