[reportlab-users] Text Background

Roberto Alsina ralsina at netmanagers.com.ar
Thu Jun 11 12:41:47 EDT 2009


On Thursday 11 June 2009 13:38:34 Joel Wickard wrote:

> I have a line I'm drawing with canvas.line, that I want to place a

> text label in the middle of. If I use a text object, then the line

> and the text sort of co-mingle, I'm looking for the text to sort of

> clip the line out and create a white background / slight left & right

> padding.

>

> Anyone want to give me a starting direction on this? In the past

> using something like illustrator if I was doing this by hand I would

> have just created a white block behind the text as a separate object,

> I'm just checking to see if we have a different options with

> reportlab.


I don't know if there is another option, but doing it that way should work in
reportlab.

--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)
"Our opponent is an alien starship packed with atomic bombs, I said.
We have a protractor. Okay, I’ll go home and see if I can scrounge up a
ruler and a piece of string." — Neal Stephenson


More information about the reportlab-users mailing list