[reportlab-users] set default font?

Andy Robinson andy at reportlab.com
Thu Jun 22 05:41:08 EDT 2006

Gábor Farkas wrote:
> hi,
> i'm generating a pdf by creating a SimpleDocTemplate,
> and then calling it's build method with flowables.
> is there a way to set up a default-font for the whole document?

The stylesheets feature an inheritance mechanism, so define the font you 
want in a 'Normal' or 'base' paragraph style, and construct your other 
styles to inherit from this.  Then you can parameterise the whole 
stylesheet construction.

Hope this helps,

- Andy

More information about the reportlab-users mailing list