[reportlab-users] parseAFMFile sfsc1200.afm

Gregor Horvath g.horvath at gmx.at
Tue Aug 23 14:16:55 EDT 2005


Hi,


Robin Becker schrieb:
> I'm not sure; I'll have a look at the original parseafm.c code and also 
> at any docs I can find from Adobe. I don't think it's a major problem to 
> fix as python won't really care if it is an int or float, but I think 
> some of our accelerator code might want it to be an int.

Thanks for the info.
For a quick and dirty workaround, I changed line 91 of
/usr/lib/python2.2/site-packages/reportlab/pdfbase/pdfmetrics.py

to

-->
  width = int(float(r))
<--

It works.

-- 
Greg


More information about the reportlab-users mailing list