[reportlab-users] Background color to drawstring in canvas

Tim Roberts timr at probo.com
Mon Aug 29 14:36:11 EDT 2011


Asif Jamadar wrote:

>

> How can I give background color to the drawString method ?

>

>

>

> Canvas.setFillColor(blue) will not working for background color…

>


Text in Postscript is always drawn with a transparent background. If
you want a string to appear on a colored background, then you need to
draw the background as a filled rectangle, then draw the string on top
of that.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20110829/83a8d5fc/attachment.html>


More information about the reportlab-users mailing list