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

All > SVG > Text > text-textLength-BE-17


File: text-textLength-BE-17
Author: Lofton Henderson
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style | transform |
linex1 | x2 | y1 | y2 |
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textlengthAdjust | style | textLength | x | y |
titleid |

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-textLength-BE-17</title>
     <desc id="test-desc">Basic test of 'textLength' and 'lengthAdjust' attributes.</desc>
     <g id="test-body-content">
          <text x="75" y="25" style="font-family:Helvetica;font-size:12;fill:black;">Basic test of 'textLength' and 'lengthAdjust' attributes.</text>
          <g id="test-1-2">
               <g style="font-family:Helvetica;font-size:16;fill:blue;">
                    <text x="40" y="75">Line to Stretch</text>
                    <text x="245" y="75">this is a line to squeeze</text>
               </g>
               <g style="stroke:red;">
                    <line x1="39" y1="77" x2="145" y2="77"/>
                    <line x1="39" y1="77" x2="39" y2="84"/>
                    <line x1="145" y1="77" x2="145" y2="84"/>
                    <line x1="244" y1="77" x2="412" y2="77"/>
                    <line x1="244" y1="77" x2="244" y2="84"/>
                    <line x1="412" y1="77" x2="412" y2="84"/>
               </g>
               <g style="font-family:Helvetica;font-size:10;fill:black;">
                    <text x="40" y="95">textLength: default</text>
                    <text x="40" y="105">lengthAdjust: default</text>
                    <text x="244" y="95">textLength: default</text>
                    <text x="244" y="105">lengthAdjust: default</text>
               </g>
          </g>
          <g id="test-3-4" transform="translate(0,75)">
               <g style="font-family:Helvetica;font-size:16;fill:blue;">
                    <text x="40" y="75" textLength="140">Line to Stretch</text>
                    <text x="245" y="75" textLength="140">this is a line to squeeze</text>
               </g>
               <g style="stroke:red;">
                    <line x1="39" y1="77" x2="181" y2="77"/>
                    <line x1="39" y1="70" x2="39" y2="84"/>
                    <line x1="181" y1="70" x2="181" y2="84"/>
                    <line x1="244" y1="77" x2="387" y2="77"/>
                    <line x1="244" y1="70" x2="244" y2="84"/>
                    <line x1="387" y1="70" x2="387" y2="84"/>
               </g>
               <g style="font-family:Helvetica;font-size:10;fill:black;">
                    <text x="40" y="95">textLength: 35% longer</text>
                    <text x="40" y="105">lengthAdjust: default</text>
                    <text x="244" y="95">textLength: 15% shorter</text>
                    <text x="244" y="105">lengthAdjust: default</text>
               </g>
          </g>
          <g id="test-5-6" transform="translate(0,150)">
               <g style="font-family:Helvetica;font-size:16;fill:blue;">
                    <text x="40" y="75" textLength="140" lengthAdjust="spacing">Line to Stretch</text>
                    <text x="245" y="75" textLength="140" lengthAdjust="spacing">this is a line to squeeze</text>
               </g>
               <g style="stroke:red;">
                    <line x1="39" y1="77" x2="181" y2="77"/>
                    <line x1="39" y1="70" x2="39" y2="84"/>
                    <line x1="181" y1="70" x2="181" y2="84"/>
                    <line x1="244" y1="77" x2="387" y2="77"/>
                    <line x1="244" y1="70" x2="244" y2="84"/>
                    <line x1="387" y1="70" x2="387" y2="84"/>
               </g>
               <g style="font-family:Helvetica;font-size:10;fill:black;">
                    <text x="40" y="95">textLength: 35% longer</text>
                    <text x="40" y="105">lengthAdjust: spacing</text>
                    <text x="244" y="95">textLength: 15% shorter</text>
                    <text x="244" y="105">lengthAdjust: spacing</text>
               </g>
          </g>
          <g id="test-7-8" transform="translate(0,225)">
               <g style="font-family:Helvetica;font-size:16;fill:blue;">
                    <text x="40" y="75" textLength="140" lengthAdjust="spacingAndGlyphs">Line to Stretch</text>
                    <text x="245" y="75" textLength="140" lengthAdjust="spacingAndGlyphs">this is a line to squeeze</text>
               </g>
               <g style="stroke:red;">
                    <line x1="39" y1="77" x2="181" y2="77"/>
                    <line x1="39" y1="70" x2="39" y2="84"/>
                    <line x1="181" y1="70" x2="181" y2="84"/>
                    <line x1="244" y1="77" x2="387" y2="77"/>
                    <line x1="244" y1="70" x2="244" y2="84"/>
                    <line x1="387" y1="70" x2="387" y2="84"/>
               </g>
               <g style="font-family:Helvetica;font-size:10;fill:black;">
                    <text x="40" y="95">textLength: 35% longer</text>
                    <text x="40" y="105">lengthAdjust: spacingAndGlyphs</text>
                    <text x="244" y="95">textLength: 15% shorter</text>
                    <text x="244" y="105">lengthAdjust: spacingAndGlyphs</text>
               </g>
          </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-textLength-BE-17</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: Domain Names, VoIP Internettelefonie, DSL, SDSL, ADSL, UNLIMITED Web Hosting by HostDepartment, conference call service, answering service