Hello,
I try to figure out the position of a node in a hinted truetype outline at a specific ppm size.
I use the following code:
nodeIndex = 15 # top left corner
ppmRange = range(15, 30)
tth = TTH(fl.glyph, fl.font)
tth.LoadProgram()
for ppm in ppmRange:
tth.SetPPM(ppm)
tth.RunProgram()
print 'ppm = %s, height = %4s' % (ppm, tth.outline[nodeIndex].y)
This works fine, except when it returns wrong values.
As you can see in the attached screenshot.

For a ppm size of 23 the script calculates a y-value of 12 for node 0 (top left corner). But in the glyph window the y-position of this node is 11.
Is there something wrong with my script or is this a bug in FontLabs TTH object?
If you want to reproduce the problem, you may use the vfb file in the attached zip.
Regards
Eigi