[reportlab-users] renderPM problem

ketul patel reportlab-users@reportlab.com
Wed, 17 Mar 2004 14:14:49 +0000


Hi
Sorry for all the trouble.
I had the faulty distribution.It had  no drawToFile method.
Now I have installed reportlab 1.19.
But now when I run renderPM.py I get the following errors about font:
Warn: Can't find .pfb for face 'Times-Roman'
Traceback (most recent call last):
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
612, in ?
    test()
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
593, in test
    drawToFile(drawing,fullpath,fmt=k)
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
541, in drawToFile
    c = drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL, 
showBoundary=showBoundary)
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
527, in drawToPMCanvas
    draw(d, c, 0, 0)
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
50, in draw
    R.draw(drawing, canvas, x, y)
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
96, in draw
    self.applyState()
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
81, in applyState
    self._canvas.setFont(s['fontName'], s['fontSize'])
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
349, in setFont
    _setFont(self._gs,fontName,fontSize)
  File "D:\Python23\Lib\site-packages\reportlab\graphics\renderPM.py", line 
232, in _setFont
    raise RenderPMError, "Can't setFont(%s) missing the T1 
files?\nOriginally %s: %s" % (fontName,s1,s2)
__main__.RenderPMError: Can't setFont(Times-Roman) missing the T1 files?
Originally exceptions.TypeError: makeT1Font() argument 2 must be string, not 
None


How do I remove this error??
Thanks

_________________________________________________________________
Catch the formula fever! Get all the latest news. 
http://www.msn.co.in/formula2004/ Right here on MSN.