5 c
.set([style
.linestyle
.dotted
])
6 c
.stroke(path
.line(-5, 0, -5, 5))
7 c
.stroke(path
.line(0, 0, 0, 5))
8 c
.stroke(path
.line(5, 0, 5, 5))
10 c
.text(-5, 5, r
"boxleft", [text
.halign
.boxleft
])
11 c
.text(0, 5, r
"boxcenter", [text
.halign
.boxcenter
])
12 c
.text(5, 5, r
"boxright", [text
.halign
.boxright
])
14 c
.text(0, 4, r
"boxcenter and flushleft",
15 [text
.parbox(3), text
.halign
.boxcenter
, text
.halign
.flushleft
])
16 c
.text(0, 3, r
"boxcenter and flushcenter",
17 [text
.parbox(3), text
.halign
.boxcenter
, text
.halign
.flushcenter
])
18 c
.text(0, 2, r
"boxcenter and flushright",
19 [text
.parbox(3), text
.halign
.boxcenter
, text
.halign
.flushright
])
21 c
.text(-5, 0, r
"left: boxleft and flushleft",
22 [text
.parbox(3), text
.halign
.left
])
23 c
.text(0, 0, r
"center: boxcenter and flushcenter",
24 [text
.parbox(3), text
.halign
.center
])
25 c
.text(5, 0, r
"right: boxright and flushright",
26 [text
.parbox(3), text
.halign
.right
])
28 c
.writeEPSfile("halign")
29 c
.writePDFfile("halign")