david
unread,Oct 15, 2009, 4:07:28 PM10/15/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pisa XHTML2PDF Support
Hi,
I need to generate PDFs with Japanese characters, and the way to make
this work seems to be to embed the font in the PDF. The application
with be running on Windows. As far as I can tell, all of the fonts
available with the OS are in TTC (truetype collection) files as
opposed to TTF files. ReportLab supports TTC files, but pisa does not
handle them correctly. The fix is simple:
In pisa_context.py, change line 978 from
if suffix == "ttf":
to
if suffix in ["ttf", "ttc"]:
Works for me. Just a heads up - not sure if this solution is totally
sound.
Thanks,
David