[reportlab-users] Adding text to frames

William Chipman bill at chipmaninfo.com
Mon Oct 22 17:16:30 EDT 2018


Doh
So that's what leading means.
Thanks.

On Mon, Oct 22, 2018 at 3:55 PM Tim Roberts <timr at probo.com> 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, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20181022/d1f9a291/attachment.html>


More information about the reportlab-users mailing list