[reportlab-users] Exceptions raised for a png file

Robin Becker reportlab-users@reportlab.com
Tue, 18 Jun 2002 20:44:53 +0100


In article <20020618145336.7560.qmail@web14103.mail.yahoo.com>, diane
eklou <didiyao2000@yahoo.fr> writes
>Hi,
>I want to generate a "png" file but an exception is
>raised:
>Warn: Can't find .pfb for face 'Times-Roman'
..........
>reportlab.graphics.renderPM.RenderPMError: Can't
>setFont(Times-Roman) missing the T1 files?
>Originally exceptions.TypeError: makeT1Font() argument
>2 must be string, not None
>
>Somebody can tell me why ???
>thanks
>--Yao
.....
the error message says it exactly. If you need to generate the
postscript curves for the built in fonts (or any other T1 font for that
matter) you need more than just the acrobat reader. It may be that
you've installed acrobat reader for windows in some non-standard place
so that we don't know where to look or you may be running on a platform
where we don't know.

You can get the pfb's for the standard things from www.adobe.com. When
you get acrobat reader for windows it normally comes with a whole bunch
of .pdf files.

If those files are already on you system you can let ReportLab know
about it by editing the T1SearchPath variable in reportlab/rl_config.py.

If you download the files you can always put them in reportlab/fonts.
-- 
Robin Becker