[reportlab-users] Height of a String

Andrea Cappelli a.cappelli at gmail.com
Thu Mar 12 09:56:04 EDT 2009


Hi all,
it's possible to get teh height of a string? (given font and size,
obviously).
If I have a text inside a flowable (like Paragraph) i can get width and
height of the flowable widt wrapOn method, so i can place exactly the
flowable within the page.

I would do the same thing with a simple string, i get the length with
stringWidth but i don't know how to get the maximun height, so i can for
example calculate a rectangle in which the string fits exactly

There is a way to do that?

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090312/eb8269c8/attachment.pgp>


More information about the reportlab-users mailing list