[reportlab-users] Several questions about text output
Grzegorz Adam Hankiewicz
gradha at titanium.sabren.com
Tue Jul 15 15:13:33 EDT 2008
El 15/07/2008, a las 0:59, Robin Becker escribió:
> [...]
> ascent,descent = getAscentDescent(fontName,fontSize)
>
> if you don't specify fontSize then 1000 is assumed.
>
> This will return the values for the ascent and descent of the font
> from the baseline. So for fontSize x your string box will be
>
>
> x,y-descent,x+stringWidth(s,fontName,fontSize),y+ascent
>
> hope this isn't too arcane
Well, it works and that's good enough for me. Thanks.
More information about the reportlab-users
mailing list