| 1 |
<svg version="1.1" baseProfile="tiny" id="svg-root" |
| 2 |
width="100%" height="100%" viewBox="0 0 480 360" |
| 3 |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
<!--======================================================================--> |
| 5 |
<!--= SVG 1.1 2nd Edition Test Case =--> |
| 6 |
<!--======================================================================--> |
| 7 |
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> |
| 8 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 9 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 10 |
<!--= All Rights Reserved. =--> |
| 11 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 12 |
<!--======================================================================--> |
| 13 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 14 |
template-version="1.4" reviewer="AE" author="MI" status="accepted" |
| 15 |
version="$Revision: 1.6 $" testname="$RCSfile: text-text-07-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#TextElement"> |
| 17 |
<p> |
| 18 |
Tests multiple x, y, rotate, with various combinations. Since an |
| 19 |
array of values is given, each glyph must use the value from the |
| 20 |
corresponding character in the list. |
| 21 |
</p> |
| 22 |
</d:testDescription> |
| 23 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 24 |
<p> |
| 25 |
Run the test. No interaction required. |
| 26 |
</p> |
| 27 |
</d:operatorScript> |
| 28 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 29 |
<p> |
| 30 |
The test is passed if: |
| 31 |
</p> |
| 32 |
<ul> |
| 33 |
<li> |
| 34 |
Each letter in the word "ROTATE" is rotated 10 |
| 35 |
degrees more than the previous letter, with the first letter being |
| 36 |
rotated at 0 degrees. |
| 37 |
</li> |
| 38 |
<li> |
| 39 |
Each letter in the word "Multi XY" (including the white space) is |
| 40 |
shifted in the x and y by 20 pixels more (in user space) than the |
| 41 |
previous letter, with the first letter beginning at coordinate |
| 42 |
240, 60. |
| 43 |
</li> |
| 44 |
<li> |
| 45 |
Each letter in the word "Both Together" (including the space) is |
| 46 |
rotated and shifted. Each of the rotated letters is rotated -10 |
| 47 |
degrees more than the previous letter, with the first letter being |
| 48 |
rotated a 0 degrees. Each of the shifted letters is shifted by 20 |
| 49 |
pixels more than the previous letter in the x direction and -10 pixels |
| 50 |
more than the previous letter in the y direction, with the first |
| 51 |
letter beginning at the coordinate 10, 300. |
| 52 |
</li> |
| 53 |
</ul> |
| 54 |
</d:passCriteria> |
| 55 |
</d:SVGTestCase> |
| 56 |
<title id="test-title">$RCSfile: text-text-07-t.svg,v $</title> |
| 57 |
<defs> |
| 58 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 59 |
<font-face-src> |
| 60 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 61 |
</font-face-src> |
| 62 |
</font-face> |
| 63 |
</defs> |
| 64 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 65 |
<text x="240 260 280 300 320 340 360" y="60 80 100 120 140 160 180 200" font-size="35">Multi X Y</text> |
| 66 |
<text x="10" y="60" rotate="0 10 20 30 40 50 60" font-size="35">ROTATE</text> |
| 67 |
<text x="10 30 50 70 90 110 130 150 170 190 210 230 250" y="300 290 280 270 260 250 240 230 220 210 200 190 180" rotate="0 -10 -20 -30 -40 -50 -60 -70 -80 -90 -100 -110 -120" font-size="35">Both Together</text> |
| 68 |
</g> |
| 69 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 70 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> |
| 71 |
</g> |
| 72 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 73 |
<!-- comment out this watermark once the test is approved --> |
| 74 |
<!--<g id="draft-watermark"> |
| 75 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 76 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 77 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 78 |
</g>--> |
| 79 |
</svg> |