Using the oF class
ofTrueTypeFont, I can call the
getCharacterAsPoints() method which returns a vector of ofPoints. Depending on the letter, the vector could have one or more dimensions, for example the outline of the letter 'l' could be drawn with a single line, however a letter like 'p' needs to have two different contours, one for the outline and one for the hole. So far, I have experimented and tried to see exactly what kind of data can be extracted using
getCharacterAsPoints(), I produced this:
The left hand image shows the symbol drawn with straight lines from each point, with circles showing the origin of each point. The right hand image shows each point with the contour number and point number that particular point is, for example the fourth point in the 1st contour will be expressed as: c0n3, as the points and contours are indexed from zero.