some updates to the webpage
[PyX.git] / examples / text / textbox.py
blobf6b0bdae4c3773b4273edd55fc142be2dd9c7ba1
1 from pyx import *
2 unit.set(xscale=3)
4 tbox = text.text(0, 0, r"Boxed text")
5 tpath = tbox.bbox().enlarged(3*unit.x_pt).path()
7 c = canvas.canvas()
8 c.draw(tpath, [deco.filled([color.cmyk.Yellow]), deco.stroked()])
9 c.insert(tbox)
10 c.writeEPSfile("textbox")
11 c.writePDFfile("textbox")