[reportlab-users] Adding text to frames
    Tim Roberts 
    timr at probo.com
       
    Mon Oct 22 16:55:14 EDT 2018
    
    
  
William Chipman wrote:
> styles = getSampleStyleSheet()
> stylesC = styles['Code']
> stylesC.__setattr__('fontName','Courier')
> stylesC.__setattr__('fontSize',12)
> stylesC.__setattr__('leading',0)
That's the problem.  The "leading" is the line-to-line spacing. By 
setting the leading to 0, you told it to put all the lines on top of 
each other.  Set the leading to something more like 14.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20181022/b37538ec/attachment.html>
    
    
More information about the reportlab-users
mailing list