I'm having troubles in correctly reading the outline of a glyph. When looking at the points that define the outline I get a list of points which are highly redundant and don't make sense at all. A typical output of a glyph outline my program produces looks like this:
index 67 glyph_index: 60
outline 0 from point 0 to point 27
point 0 on curve x 0 y 128
point 1 on curve x 0 y 128
point 2 off conic x 0 y 128
point 3 on curve x 0 y 128
point 4 off conic x 0 y 128
point 5 on curve x 0 y 128
etc.....
The code fragment which produces this output looks like this (some error checking code has been removed for the sake of brevity):
I have tested a bunch of different true type fonts and different characters but always end up with these highly reduntant list of points which lie on top of each other. What the heck am I doing wrong?