Search code examples
fontstruetypeopentype

True Type fonts. Problems with glyf table


I'm trying to learn how to read an open type font file.

The thing is I am having problems reading some tables. I thought it would be enough with the information given at http://www.microsoft.com/typography/otspec/otff.htm

When trying to read the glyf table I find under simple glyph description flags[n], where n is the number of flags.

The problem is I don't know where to get the number of flags from, and without the number of flags reading the table doesn't seem possible.


Solution

  • Ok, I found the answer to my questions, endPtsOfContours had the position of the last point of every contour in the list of coordinates.

    I used TTFDUMP to find out what the answer was.