Re: Adding text to frames
William Chipman <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CALA3X7NdMV1KmbJqFQmm+g=b4qk4P-xf+1zFH1-R_V_=58vMUA@mail.gmail.com> |
Doh So that's what leading means. Thanks. On Mon, Oct 22, 2018 at 3:55 PM Tim Roberts <[email protected]> wrote: > 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. > > _______________________________________________ > reportlab-users mailing list > [email protected] > https://pairlist2.pair.net/mailman/listinfo/reportlab-users >