TTC files

7 views
Skip to first unread message

david

unread,
Oct 15, 2009, 4:07:28 PM10/15/09
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
Reply all
Reply to author
Forward
0 new messages