[reportlab-users] Image generation with japanese/chinese characters

Robin Becker robin at reportlab.com
Tue Oct 18 11:19:25 EDT 2005


Satish Kalipatnapu wrote:
> Hi, 
>  
>  I could create reportlab PDF reports with japanese characters in it.
> But I'm unable to generate the corresponding images(PNG). Here is the
> error, 
>  
>   File "/..../reportlab/graphics/renderPM.py", line 207, in _setFont
>     raise RenderPMError, "Can't setFont(%s) missing the T1
> files?\nOriginally %s: %s" % (fontName,s1,s2)
> reportlab.graphics.renderPM.RenderPMError: Can't
> setFont(HeiseiMin-W3-UniJIS-UCS2-H) missing the T1 files?
> Originally exceptions.AttributeError: CIDEncoding instance has no
> attribute 'vector'
> 
>  
> The above error suggests that the T1 fonts are not found. After
> searching for all available T1-fonts (*.pfb) on my system (FreeBSD), and
> including them in the path 'T1SearchPath' in rl_config.py, I still have
> the same error. It seems like Type 1 Japanese fonts are not available on
> my system. 
>  
> How to go about getting the T1-Fonts (and hopefully get past the error
> above). Did not find any such downloads Googling. I appreciate any help
> on this.
>  
> Thanks,
> Satish
......unfortunately I don't think the bitmap output supports CID fonts.
You can find a suitable zip file containing the files you require to at least 
allow the standard fonts to be used in the www.reportlab.org/ftp area. Look for 
a file called pfbfer.zip or something similar.
-- 
Robin Becker


More information about the reportlab-users mailing list