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.