[reportlab-users] ttfonts.py patch

Robin Becker robin at reportlab.com
Wed Dec 2 10:32:07 EST 2009

Hi Jerry,

I see no reason why your patch should not be used. I assume that the problem you
cannot fix is related to the unpacking of the integers using struct ie

return unpack('>h',self._ttf_data[self._pos-2:self._pos])[0]

I'm not sure why that is happening, but I will take a look at your failing font
and see if I can figure out what's wrong.

The second patch relating to the so called postscript name is easier to
understand, but probably harder to see what all the down sides are; I suppose
the main problem is that it's not clear what the official name of the font
should be; presumably you've seen fonts without the postscript name, but which
do have one of the other name like fields set.
Robin Becker

More information about the reportlab-users mailing list