[reportlab-users] utf-8 in table

Erkin Tek erkintek at fotograf.web.tr
Mon Dec 4 09:24:23 EST 2006


Hi,
I couldnt get correct characters from table. So I changed the
platypus/table.py as follows:

class CellStyle1(PropertySet):
fontname = "luxiserif"

where it was:
class CellStyle1(PropertySet):
fontname = "Times-Roman"

where I defined luxiserif with
pdfmetrics.registerFont(TTFont('luxiserif', 'luxiserif.ttf'))

I wonder if there is a more elegant way of passing font to table cells.

Thanks


More information about the reportlab-users mailing list