[reportlab-users] Problem printing with lulu.com

Roberto Alsina ralsina at netmanagers.com.ar
Thu Apr 15 06:25:13 EDT 2010


On Thursday 15 April 2010 06:10:25 Robin Becker wrote:

> On 14/04/2010 12:09, Roberto Alsina wrote:

> > On Wednesday 14 April 2010 07:44:31 Roberto Alsina wrote:

> >> Ignore this, I am obviously using times-roman font there :-(

> >

> > Ok, a real test case now. If you use a table, Times-Roman pops up in the

> > output. If you don't, there's only Helvetica.

> >

> >

> >

> > #!/usr/bin/env python

>

> ........

>

> > go()

>

> ........

> Robert,

>

> I tested this and it seems as though the problem lies with the Table and

> cells. It turns out that the cell has a default cellstyle which used

> 'Times-Roman'. Since no TableStyle was set for the single cell then the

> default cell style gets used.

>

> Even though the content has an explicit Paragraph contents with a different

> font style we still have to set the font from the cell before using the

> content (because the content might need a specific font/size set on the

> canvas).


So, adding a FONTNAME command to the table style I am using should fix that?

I suppose you should change that to use the canvas basefontname by default,
too?


More information about the reportlab-users mailing list