Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 9b3ef98d82282343cfac7f840aa5ab34 > files > 374

PyX-0.11.1-1.fc15.i686.rpm

from pyx import *
unit.set(xscale=3)

tbox = text.text(0, 0, r"Boxed text")
tpath = tbox.bbox().enlarged(3*unit.x_pt).path()

c = canvas.canvas()
c.draw(tpath, [deco.filled([color.cmyk.Yellow]), deco.stroked()])
c.insert(tbox)
c.writeEPSfile("textbox")
c.writePDFfile("textbox")