Horizontal text alignment can be set using the
text-anchor attribute.
OutputSource
<
svg width="200"
height="100" xmlns="
http://www.w3.org/2000/svg" >
<
text x="50%"
y="50"
text-anchor="start"
font-family="monospace">12345</
text>
<
text x="50%"
y="70"
text-anchor="end"
font-family="monospace">12345</
text>
<
text x="50%"
y="90"
text-anchor="middle"
font-family="monospace">12345</
text>
</
svg>