4 tbox
= text
.text(0, 0, r
"Boxed text")
5 tpath
= tbox
.bbox().enlarged(3*unit
.x_pt
).path()
8 c
.draw(tpath
, [deco
.filled([color
.cmyk
.Yellow
]), deco
.stroked()])
10 c
.writeEPSfile("textbox")
11 c
.writePDFfile("textbox")
12 c
.writeSVGfile("textbox")