ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Text > text-alignment-BE-10


File: text-alignment-BE-10
Author: Jon Ferraiolo
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
circler |
descid |
gid | style | transform |
linestyle | x1 | x2 |
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | y |
titleid |
tspanstyle |

Source

<svg id="svg-root" width="450" height="450" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
     <title id="test-title">text-alignment-BE-10</title>
     <desc id="test-desc">Test 'text-anchor' and the 'baseline-shift' properties (horizontal).</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:16;" x="10" y="20">Test 'text-anchor' and the 'baseline-shift' properties (horizontal).</text>
          <g id="text-anchor" style="font-family:Helvetica;font-size:18;">
               <g transform="translate(200,70)">
                    <line style="stroke:black;" x2="50"/>
                    <circle r="3"/>
                    <text style="text-anchor:start;fill:red;">Text-anchor:start</text>
               </g>
               <g transform="translate(200,110)">
                    <line style="stroke:black;" x1="-25" x2="25"/>
                    <circle r="3"/>
                    <text style="text-anchor:middle;fill:green;">Text-anchor:middle</text>
               </g>
               <g transform="translate(200,150)">
                    <line style="stroke:black;" x1="-50" x2="0"/>
                    <circle r="3"/>
                    <text style="text-anchor:end;fill:blue;">Text-anchor:end</text>
               </g>
          </g>
          <g id="baseline-shift" style="font-family:Helvetica;font-size:18;" transform="translate(10,225)">
               <text y="0">Normal text
                    <tspan style="baseline-shift:7;fill:red;">baseline-shift:7</tspan>normal text
               </text>
               <text y="50">Normal text
                    <tspan style="baseline-shift:-70%;fill:red;">baseline-shift:-70%</tspan>normal text
               </text>
               <text y="100">Normal text
                    <tspan style="baseline-shift:sub;fill:red;">sub</tspan>
                    <tspan style="baseline-shift:super;fill:green;">super</tspan>
                    <tspan style="baseline-shift:normal;fill:blue;">normal</tspan>text
               </text>
          </g>
     </g>
     <g id="test-legend" style="fill:black;font-family:Helvetica;font-size:10;">
          <rect x="10" y="390" width="275" height="50" style="fill:none;stroke:#000000;"/>
          <path style="fill:none;stroke:#000000;" d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
          <text x="25" y="401">Scalable Vector Graphics (SVG) Conformance Suite</text>
          <a xlink:href="copyright-documents-19990405.html">
               <text x="12" y="437" style="fill:blue;">Copyright 2000 W3C. All Rights Reserved.</text>
          </a>
          <text style="font-size:12;" x="35" y="420">text-alignment-BE-10</text>
          <text style="font-size:10;" x="210" y="417">$Revision: 1.1 $</text>
          <text style="font-size:10;" x="210" y="435">Release 2.0</text>
          <rect id="test-frame" x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
     </g>
</svg>



Sponsored links: conference call service, VoIP Internettelefonie, DSL, SDSL, ADSL, answering service