tref

書き方

<tref xlink:href="参照先URI" x="X座標" y="Y座標" dx="X座標" dy="Y座標" rotate="角度" textLength="?" lengthAdjust="?" style="style data">
描画文字列
</tspan>

xlink:href="参照先URI"

参照先のURIを指定する。

x="X座標"

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

y="Y座標"

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

dx="相対X座標"

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

dy="相対Y座標"

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

rotate="角度"

tsapnで囲んだ文字列の1文字毎の角度を1つづつ指定する。指定しないと0と見なされる。

textLength="?"

lengthAdjust="?"

使用例

<defs>
<text id="test">REF</text>
</defs>

<text x="20" y="70" style="font-family:Verdana; font-size:20pt; fill:blue">
abc
<tref xlink:href="#test" dx="10" rotate="-30 -20 -10" style="fill:red;"/>
def
</text>