[reportlab-users] Exceptions raised for a png file

diane eklou reportlab-users@reportlab.com
Tue, 18 Jun 2002 16:53:36 +0200 (CEST)


Hi,
I want to generate a "png" file but an exception is
raised:
Warn: Can't find .pfb for face 'Times-Roman'
Traceback (most recent call last):
  File "Graphic.py", line 270, in ?
    Run(sys.argv)
  File "Graphic.py", line 266, in Run
    Graphic(days,graph,fn,debug)
  File "Graphic.py", line 38, in __init__
    self.get_documents(self.days)
  File "Graphic.py", line 69, in get_documents
    self.plot_bar(self.data)
  File "Graphic.py", line 221, in plot_bar
    renderPM.drawToFile(drawing,'toto.png',fmt='png')
  File "reportlab/graphics/renderPM.py", line 446, in
drawToFile
  File "reportlab/graphics/renderPM.py", line 44, in
draw
  File "reportlab/graphics/renderPM.py", line 90, in
draw
  File "reportlab/graphics/renderPM.py", line 75, in
applyState
  File "reportlab/graphics/renderPM.py", line 266, in
setFont
  File "reportlab/graphics/renderPM.py", line 199, in
_setFont
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

=====


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com