[reportlab-users] parseAFMFile sfsc1200.afm

Robin Becker robin at reportlab.com
Wed Sep 7 09:40:00 EDT 2005


Gregor Horvath wrote:
> Robin Becker wrote:
> 
>> cause problems. As I understand it you fixed a line related to the 
>> inMetrics section of code. There's also the stuff related to inHeader. 
>> Can you check the file for the words Ascender/Descender and see if 
>> they are also non-integer? If so the same kind of 'fix' could be 
>> applied to the string.atoi() call near line 114.
> 
> 
> I changed line 114 to:
> 
> --->
> right = int(float(right))
> <---
> 
> Not it works!
> Thank you!
> 
> But why did it work under Linux?
> 
perhaps the original file under linus was slightly different. If the 
line-endings had changed perhaps the data had as well.
-- 
Robin Becker


More information about the reportlab-users mailing list