text-text-01-b-isvalid.html (6695B)
1 <!DOCTYPE html> 2 <html lang='en'> 3 <head> 4 <title>text-text-01-b-manual.svg</title> 5 <meta charset='utf-8'> 6 </head> 7 <body> 8 <h1>Source SVG: text-text-01-b-manual.svg</h1> 9 <svg version="1.1" baseProfile="basic" id="svg-root" 10 width="100%" height="100%" viewBox="0 0 160 120" 11 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 12 <!--======================================================================--> 13 <!--= SVG 1.1 2nd Edition Test Case =--> 14 <!--======================================================================--> 15 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> 16 <!--= Institute of Technology, European Research Consortium for =--> 17 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> 18 <!--= All Rights Reserved. =--> 19 <!--= See http://www.w3.org/Consortium/Legal/. =--> 20 <!--======================================================================--> 21 22 <title id="test-title">$RCSfile: text-text-01-b.svg,v $</title> 23 <defs> 24 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> 25 <font-face-src> 26 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> 27 </font-face-src> 28 </font-face> 29 </defs> 30 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> 31 <text x="14" y="10" font-size="10" fill="black">Basic test of 'textLength' </text> 32 <text x="10" y="20" font-size="10" fill="black">and 'lengthAdjust' attributes.</text> 33 <!-- Test cases 1&2: all defaults --> 34 <g id="test-1-2"> 35 <!-- The text lines --> 36 <g font-size="8" fill="blue"> 37 <text x="3" y="30">Line to Stretch</text> 38 <text x="75" y="30">this is a line to squeeze</text> 39 </g> 40 <!-- Length reference lines --> 41 <!-- (half ticks here only, as these lengths can validly vary slightly) --> 42 <g stroke="fuchsia"> 43 <line x1="2" y1="32" x2="56" y2="32"/> 44 <!-- <line x1="39" y1="70" x2="39" y2="84" /> --> 45 <line x1="2" y1="32" x2="2" y2="36"/> 46 <!-- <line x1="145" y1="70" x2="145" y2="84" /> --> 47 <line x1="56" y1="32" x2="56" y2="36"/> 48 <line x1="74" y1="32" x2="158" y2="32"/> 49 <!-- <line x1="244" y1="70" x2="244" y2="84" /> --> 50 <line x1="74" y1="32" x2="74" y2="36"/> 51 <!-- <line x1="412" y1="70" x2="412" y2="84" /> --> 52 <line x1="158" y1="32" x2="158" y2="36"/> 53 </g> 54 <!-- Labels --> 55 <g font-size="6" fill="black"> 56 <text x="6" y="38">textLength: default</text> 57 <text x="6" y="44">lengthAdjust: default</text> 58 <text x="76" y="38">textLength: default</text> 59 <text x="76" y="44">lengthAdjust: default</text> 60 </g> 61 </g> 62 <!-- Test cases 3&4: define textLength, default lengthAdjust--> 63 <g id="test-3-4" transform="translate(0,22)"> 64 <!-- The text lines --> 65 <g font-size="8" fill="blue"> 66 <text x="3" y="30" textLength="65">Line to Stretch</text> 67 <text x="75" y="30" textLength="65">this is a line to squeeze</text> 68 </g> 69 <!-- Length reference lines --> 70 <g stroke="fuchsia"> 71 <line x1="2" y1="32" x2="69" y2="32"/> 72 <line x1="2" y1="32" x2="2" y2="36"/> 73 <line x1="69" y1="32" x2="69" y2="36"/> 74 <line x1="74" y1="32" x2="141" y2="32"/> 75 <line x1="74" y1="32" x2="74" y2="36"/> 76 <line x1="141" y1="32" x2="141" y2="36"/> 77 </g> 78 <!-- Labels --> 79 <g font-size="6" fill="black"> 80 <text x="6" y="38">textLength: 25% longer</text> 81 <text x="6" y="44">lengthAdjust: default</text> 82 <text x="76" y="38">textLength: 15% shorter</text> 83 <text x="76" y="44">lengthAdjust: default</text> 84 </g> 85 </g> 86 <!-- Test cases 5&6: define textLength, lengthAdjust=spacing --> 87 <g id="test-5-6" transform="translate(0,44)"> 88 <!-- The text lines --> 89 <g font-size="8" fill="blue"> 90 <text x="3" y="30" textLength="65" lengthAdjust="spacing">Line to Stretch</text> 91 <text x="75" y="30" textLength="65" lengthAdjust="spacing">this is a line to squeeze</text> 92 </g> 93 <!-- Length reference lines --> 94 <g stroke="fuchsia"> 95 <line x1="2" y1="32" x2="69" y2="32"/> 96 <line x1="2" y1="32" x2="2" y2="36"/> 97 <line x1="69" y1="32" x2="69" y2="36"/> 98 <line x1="74" y1="32" x2="141" y2="32"/> 99 <line x1="74" y1="32" x2="74" y2="36"/> 100 <line x1="141" y1="32" x2="141" y2="36"/> 101 </g> 102 <!-- Labels --> 103 <g font-size="6" fill="black"> 104 <text x="3" y="38">textLength: 25% longer</text> 105 <text x="3" y="44">lengthAdjust: spacing</text> 106 <text x="76" y="38">textLength: 15% shorter</text> 107 <text x="76" y="44">lengthAdjust: spacing</text> 108 </g> 109 </g> 110 <!-- Test cases 7&8: define textLength, lengthAdjust=spacingAndGlyphs --> 111 <g id="test-7-8" transform="translate(0,66)"> 112 <!-- The text lines --> 113 <g font-size="8" fill="blue"> 114 <text x="3" y="30" textLength="65" lengthAdjust="spacingAndGlyphs">Line to Stretch</text> 115 <text x="75" y="30" textLength="65" lengthAdjust="spacingAndGlyphs">this is a line to squeeze</text> 116 </g> 117 <!-- Length reference lines --> 118 <g stroke="fuchsia"> 119 <line x1="2" y1="32" x2="69" y2="32"/> 120 <line x1="2" y1="32" x2="2" y2="36"/> 121 <line x1="69" y1="32" x2="69" y2="36"/> 122 <line x1="74" y1="32" x2="141" y2="32"/> 123 <line x1="74" y1="32" x2="74" y2="36"/> 124 <line x1="141" y1="32" x2="141" y2="36"/> 125 </g> 126 <!-- Labels --> 127 <g font-size="6" fill="black"> 128 <text x="6" y="38">textLength: 25% longer</text> 129 <text x="6" y="44">lengthAdjust: sAG</text> 130 <text x="76" y="38">textLength: 20% shorter</text> 131 <text x="76" y="44">lengthAdjust: sAG</text> 132 </g> 133 </g> 134 </g> 135 <g font-family="SVGFreeSansASCII,sans-serif" font-size="8"> 136 <text id="revision" x="10" y="117" stroke="none" fill="black">$Revision: 1.8 $</text> 137 </g> 138 <rect id="test-frame" x="1" y="1" width="158" height="118" fill="none" stroke="#000000"/> 139 <!-- comment out this watermark once the test is approved --> 140 <!--<g id="draft-watermark"> 141 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> 142 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" 143 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> 144 </g>--> 145 </svg> 146 </body> 147 </html>