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

Henning von Bargen H.vonBargen at t-p.com
Fri Nov 3 02:45:49 EST 2006


> From: Chris Withers <chris at simplistix.co.uk>
> Subject: Re: [reportlab-users] Text scaling and finding out how much
> 	space	text will take up
> 
> Which leaves one question: how do I horizontally scale (ie: 
> squish) text 
> by a certain amount?

You could also play around with set methods
setCharSpace and setHorizScale of the PDFTextObject class.

I once tried them, and it gives nice results.
Unfortunately they cannot be used from platypus,
you have to work the low-level routines.

See the RL Reference Guide. 

HTH
Henning


More information about the reportlab-users mailing list