[reportlab-users] Text scaling and finding out how much space text will take up

Chris Withers chris at simplistix.co.uk
Wed Nov 8 03:19:26 EST 2006


bard stéphane wrote:
> hi all
> i've rewrite flowable paragraph and flowable xpreformated classes
> to do that
> are you interesting by my code ?
> example : xpreformated("xml....",style,compress=80.0)
> where compress is the amount of squish
> same thing for paragraph. I've use it to squish text in table cells
> (you should use stringwidth to get the good squish percent)
> 
> (it works with reportlab 1.2 and 2.0)

Sure, it'd be interesting to see the code...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the reportlab-users mailing list