[reportlab-users] ttfonts.py patch
Robin Becker
robin at reportlab.com
Fri Dec 4 07:29:26 EST 2009
Jerry Casiano wrote:
> On Fri, 2009-12-04 at 11:05 +0000, Robin Becker wrote:
>> .......
>>
>> Jerry, can you see if the following small patch improves your outcomes.
>>
>> It seems that the error you were getting related to number of contours occurs
>> when we see glyphLen == 0. That could be because it's not really right to assume
>> that all fonts have all the glyphs in the 0-128 range.
>>
>> I tried the following patch on ttfonts.py and that at least prevents the error
>> from being raised.
.........
>
> Nice, I removed the exception I had added and made the change you
> suggested, had no problem processing over 6000 fonts.
.........
I don't think I'm worried about the accessing so much as whether you can
actually use those fonts in some real sense. Do you have some sort of test to
produce a PDF with an alphabet for each one for example? That would help to see
if the change above actually did more good than harm.
--
Robin Becker
More information about the reportlab-users
mailing list