skip the third part of a pfb in pdf when possible; improved pfb EOF check in pdf
[PyX/mjg.git] / test / functional / test_pattern.py
blob56e0646123927bd0bb948e6f05fae75e0d1d4667
1 #!/usr/bin/env python
2 import sys; sys.path[:0] = ["../.."]
4 from pyx import *
6 c = canvas.canvas()
8 pattern = canvas.pattern()
9 pattern.set([style.linewidth.thin])
10 pattern.stroke(path.line(0, 0, 0.25, 0.25))
11 pattern.stroke(path.line(0, 0.25, 0.25, 0))
13 c.draw(path.circle(3, 3, 3), [deco.filled([pattern]), deco.stroked])
15 pyxpattern = canvas.pattern()
16 pyxpattern.text(0.125, 0.125, r"\PyX")
18 c.draw(path.rect(-1, -1, 1, 1), [deco.filled([pyxpattern]), deco.stroked])
20 c.writeEPSfile("test_pattern", paperformat="a4" )