5 c
.stroke(path
.line(-5, 0, -5, 5))
6 c
.stroke(path
.line(0, 0, 0, 5))
7 c
.stroke(path
.line(5, 0, 5, 5))
9 c
.text(-5, 5, r
"boxleft", [text
.halign
.boxleft
])
10 c
.text(0, 5, r
"boxcenter", [text
.halign
.boxcenter
])
11 c
.text(5, 5, r
"boxright", [text
.halign
.boxright
])
13 c
.text(0, 4, r
"boxcenter and flushleft",
14 [text
.parbox(3), text
.halign
.boxcenter
, text
.halign
.flushleft
])
15 c
.text(0, 3, r
"boxcenter and flushcenter",
16 [text
.parbox(3), text
.halign
.boxcenter
, text
.halign
.flushcenter
])
17 c
.text(0, 2, r
"boxcenter and flushright",
18 [text
.parbox(3), text
.halign
.boxcenter
, text
.halign
.flushright
])
20 c
.text(-5, 0, r
"left: boxleft and flushleft",
21 [text
.parbox(3), text
.halign
.left
])
22 c
.text(0, 0, r
"center: boxcenter and flushcenter",
23 [text
.parbox(3), text
.halign
.center
])
24 c
.text(5, 0, r
"right: boxright and flushright",
25 [text
.parbox(3), text
.halign
.right
])
27 c
.writeEPSfile("halign")
28 c
.writePDFfile("halign")
29 c
.writeSVGfile("halign")