Can't setFont(Times-Roman) missing the T1 files?
Asked Answered
S

2

9

I have the error :

Can't find .pfb for face 'Times-Roman' Error: reportlab.graphics.renderPM.RenderPMError: Can't setFont(Times-Roman) missing the T1 files?

I think the Times-Roman fonts is not getting.

Can anyone have a solution for this one.

Thanks.

Spaceship answered 2/2, 2015 at 16:11 Comment(0)
S
12

After the R&D i found the solutions for this... and its work for me...

-> This error is also post in bugs.debian.org, and patch is provide to avoid this error.

-> And another solution is (I prefer this one):

Download this pfbfer.zip, and extract it.

Now put all the files of this pfbfer in...

/usr/lib/python2.7/dist-packages/reportlab/fonts/(put the files)

If the fonts folder is not available in reportlab directory then create it and put all the font-files in fonts from the extract folder pfbfer.

Spaceship answered 3/2, 2015 at 5:30 Comment(0)
V
1

Reinstalling reportlab worked for me.

pip3 install --upgrade reportlab
pip3 install rlPyCairo
Vaish answered 4/8, 2023 at 16:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.