[reportlab-users] Several questions about text output

Grzegorz Adam Hankiewicz gradha at titanium.sabren.com
Sun Jul 13 17:51:09 EDT 2008



El 13/07/2008, a las 23:29, Andy Robinson escribió:


> 2008/7/13 Grzegorz Adam Hankiewicz <gradha at titanium.sabren.com>:

>> However, how do I get the length of the header

>> part? I was looking for some getStringSize(font, text) which would

>> return

>

> It's called stringWidth(..) and it's available as a canvas method, or

> a function in reportlab.pdfbase.pfdmetrics.stringWidth


Ah, I had missed that one. Thanks!


More information about the reportlab-users mailing list