[reportlab-users] Finding out the width/height of text
Tim Roberts
timr at probo.com
Tue Jan 19 12:58:15 EST 2010
Jotham wrote:
>
> I guess I wasn't very clear. It's important for me that I also know
> both the width and the height of the text. I require the entire
> bounding rectangle for the given input string at the given style.
> Right now it is a single line. Maybe later it is going to need to
> wrap within a pair of margins.
Well, YOU set the leading for your canvas, so the height is really up to
you. The default leading, if you don't set it, is 120% of the font size
in points.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the reportlab-users
mailing list