Quote:
Originally Posted by Psymon
There's no way to just tell the text to be centered, no matter how long the line is (depending on the caption)?
|
Yes, there is see
http://commons.oreilly.com/wiki/inde...ssentials/Text for all kinds of things about text. You can specify the x,y coordinates to be the start, middle, or end of the line.
Code:
<g style="font-size: 14pt;">
<path d="M 100 10 100 100" style="stroke: gray; fill: none;"/>
<text x="100" y="30" style="text-anchor: start">Start</text>
<text x="100" y="60" style="text-anchor: middle">Middle</text>
<text x="100" y="90" style="text-anchor: end">End</text>
</g>
Dale