Re: Adding text to frames

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
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, [email protected]
Providenza & Boekelheide, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.