Svg-text
提供:Dev Guides
SVG-テキスト
<text>要素は、テキストの描画に使用されます。
宣言
以下は、 <text> 要素の構文宣言です。 主な属性のみを示しました。
属性
Sr.No. | Attribute & Description |
---|---|
1 | x − x axis coordinates of glyphs. |
2 | y − y axis coordinates of glyphs. |
3 | dx − shift along with x-axis. |
4 | dy − shift along with y-axis. |
5 | rotate − rotation applied to all glyphs. |
6 | textlength − rendering length of the text. |
7 | lengthAdjust − type of adjustment with the rendered length of the text. |
例
テストVG
出力
ChromeウェブブラウザでテキストSVGを開きます。 Chrome/Firefox/Operaを使用して、プラグインなしでSVG画像を直接表示できます。 Internet Explorer 9以降もSVG画像レンダリングをサポートしています。
回転するテキスト
出力
ChromeウェブブラウザでテキストSVGを開きます。 Chrome/Firefox/Operaを使用して、プラグインなしでSVG画像を直接表示できます。 Internet Explorer 9以降もSVG画像レンダリングをサポートしています。
複数行テキスト
出力
ChromeウェブブラウザでテキストSVGを開きます。 Chrome/Firefox/Operaを使用して、プラグインなしでSVG画像を直接表示できます。 Internet Explorer 9以降もSVG画像レンダリングをサポートしています。
ハイパーリンクテキスト
出力
ChromeウェブブラウザでテキストSVGを開きます。 Chrome/Firefox/Operaを使用して、プラグインなしでSVG画像を直接表示できます。 Internet Explorer 9以降もSVG画像レンダリングをサポートしています。