Debian Codegraph @

test_non_regression/svg/text-text-09-t.svg

raw
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="CL" status="accepted"
15 version="$Revision: 1.7 $" testname="$RCSfile: text-text-09-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. In this test, there are less values
21 in the array than there are characters.
22 </p>
23 </d:testDescription>
24 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 Run the test. No interaction required.
27 </p>
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 The test is passed if:
32 </p>
33 <ul>
34 <li>
35 In the word "ROTATE", each of the letters "ROTA" is rotated 10
36 degrees more than the previous letter, with the first letter being
37 rotated at 0 degrees. The letters "TE" have the same 30 degree rotation.
38 </li>
39 <li>
40 The first 5 letters in the word "MultiXY" are shifted in the x and y
41 by 20 pixels more (in user space) than the previous letter, with the
42 first letter beginning at coordinate 240, 60. The letters 'X' and 'Y'
43 will have the same y coordinate as the letter 'i' in "Multi".
44 </li>
45 <li>
46 The first 10 letters (including the space) in the word "Both Together"
47 are rotated and shifted. Each of the rotated letters is rotated -10
48 degrees more than the previous letter, with the first letter being
49 rotated a 0 degrees. Subsequent letters after the first 10 rotated at
50 -90 degrees. Each of the shifted letters is shifted by 20 pixels more
51 than the previous letter in the x direction and -10 pixels more than
52 the previous letter in the y direction, with the first letter
53 beginning at the coordinate 10, 300. Subsequent letters after the
54 first 10 will have the same y coordinate as the letter 't' is
55 "Together".
56 </li>
57 </ul>
58 </d:passCriteria>
59 </d:SVGTestCase>
60 <title id="test-title">$RCSfile: text-text-09-t.svg,v $</title>
61 <defs>
62 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
63 <font-face-src>
64 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
65 </font-face-src>
66 </font-face>
67 </defs>
68 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
69 <text x="240 260 280 300" y="60 80 100 120 140" font-size="35">Multi X Y</text>
70 <text x="10" y="60" rotate="0 10 20 30" font-size="35">ROTATE</text>
71 <text x="10 30 50 70 90 110 130 150" y="300 290 280 270 260 250 240 230" rotate="0 -10 -20 -30 -40 -50 -60 -70 -80 -90" font-size="35">Both Together</text>
72 </g>
73 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
74 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
75 </g>
76 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
77 <!-- comment out this watermark once the test is approved -->
78 <!--<g id="draft-watermark">
79 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
80 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
81 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
82 </g>-->
83 </svg>