text

書き方

<text x="X座標" y="Y座標" textLength="?" lengthAdjust="?" style="style data">
描画文字列
</text>

x="X座標"

文字列の開始座標を指定する。文字列の左端の座標となる。

y="Y座標"

文字列のベースラインの座標を指定する。

textLength="?"

lengthAdjust="?"

使用例

<text x="20" y="60" style="font-family:Verdana; font-size:20pt; fill:blue">
ABCDEFpqwxyz
</text>

<rect x="20" y="40" width="160" height="20" style="fill:none; stroke:red; stroke-width:1" />