Debian Codegraph @

test_non_regression/fail/text/text-text-05-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="SVGWG" author="VH" status="accepted"
15 version="$Revision: 1.9 $" testname="$RCSfile: text-text-05-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 The purpose of this test is to validate the interaction of text-anchor
19 and x/y glyph positioning.
20 </p>
21 <p>
22 Each row shows a different combination of x/y values: 1, more than characters,
23 fewer than characters. This tests the anchor value: start.
24 </p>
25 <p>
26 The blue markers show the various x/y absolute positions around which text
27 chunks should be anchored. The glyphs are black squares of increasing sizes.
28 </p>
29 </d:testDescription>
30 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
31 <p>
32 Run the test. No interaction required.
33 </p>
34 </d:operatorScript>
35 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
36 <p>
37 Rendered output must match the reference image for the test to pass.
38 </p>
39 </d:passCriteria>
40 </d:SVGTestCase>
41 <title id="test-title">$RCSfile: text-text-05-t.svg,v $</title>
42 <defs>
43 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
44 <font-face-src>
45 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
46 </font-face-src>
47 </font-face>
48 </defs>
49 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
50 <style type="text/css">
51 @font-face {
52 font-family: embeded;
53 src: url(woffs/embeded-text-text-05.woff) format("woff");
54 }
55 </style>
56 <g font-size="16">
57 <defs>
58 <font id="embeded" horiz-adv-x="224">
59 <font-face font-family="embeded" units-per-em="1000" panose-1="0 0 0 0 0 0 0 0 0 0" ascent="917" descent="-250" alphabetic="0"/>
60 <missing-glyph horiz-adv-x="800" d="M50 0V800H750V0H50ZM700 50V750H100V50H700Z"/>
61 <glyph unicode="1" glyph-name="gl_1" horiz-adv-x="1500" d="M 0 0 L 250 0 L 250 250 L 0 250 Z"/>
62 <glyph unicode="2" glyph-name="gl_2" horiz-adv-x="1500" d="M 0 0 L 500 0 L 500 500 L 0 500 Z"/>
63 <glyph unicode="3" glyph-name="gl_3" horiz-adv-x="1500" d="M 0 0 L 750 0 L 750 750 L 0 750 Z"/>
64 <glyph unicode="4" glyph-name="gl_4" horiz-adv-x="1500" d="M 0 0 L 1000 0 L 1000 1000 L 0 1000 Z"/>
65 </font>
66
67 </defs>
68
69 <defs>
70 <g id="marker">
71 <line y2="-15" stroke="fuchsia"/>
72 <rect x="-4" y="-4" width="8" height="8"/>
73 </g>
74 </defs>
75
76 <g id="legend" transform="translate(10, 40)">
77 <text y="30">1.x 1.y</text>
78 <text y="60">4.x 1.y</text>
79 <text y="90">2.x 1.y</text>
80 <text y="120">1.x 4.y</text>
81 <text y="150">4.x 4.y</text>
82 <text y="180">2.x 4.y</text>
83 <text y="210">1.x 2.y</text>
84 <text y="240">4.x 2.y</text>
85 <text y="270">2.x 2.y</text>
86 </g>
87
88 <g id="anchorStart" text-anchor="start" transform="translate(150, 40)">
89 <text y="-17" text-anchor="middle">text-anchor</text>
90 <text y="-3" text-anchor="middle">start</text>
91 <line x1="0" y1="10" x2="0" y2="290" stroke="fuchsia"/>
92
93 <g id="textContent">
94 <!-- 1.x 1.y -->
95 <use y="30" xlink:href="#marker" fill="#8888ff"/>
96 <text x="0" y="30" font-family="embeded" font-size="10">1234</text>
97
98 <!-- 4.x 1.y : four text chunks -->
99 <use x="10" y="60" xlink:href="#marker" fill="#8888ff"/>
100 <use x="20" y="60" xlink:href="#marker" fill="#8888ff"/>
101 <use x="30" y="60" xlink:href="#marker" fill="#8888ff"/>
102 <use x="40" y="60" xlink:href="#marker" fill="#8888ff"/>
103 <text x="10 20 30 40" y="60" font-family="embeded" font-size="10">1234</text>
104
105 <!-- 2.x 1.y : two text chunks -->
106 <use x="10" y="90" xlink:href="#marker" fill="#8888ff"/>
107 <use x="60" y="90" xlink:href="#marker" fill="#8888ff"/>
108 <text x="10 60" y="90" font-family="embeded" font-size="10">1234</text>
109
110 <!-- 1.x 4.y : four text chunks -->
111 <g transform="translate(0, 120)">
112 <use x="0" y="-10" xlink:href="#marker" fill="#8888ff"/>
113 <use x="15" y="-5" xlink:href="#marker" fill="#8888ff"/>
114 <use x="30" y="5" xlink:href="#marker" fill="#8888ff"/>
115 <use x="45" y="10" xlink:href="#marker" fill="#8888ff"/>
116 <text x="0" y="-10 -5 5 10" font-family="embeded" font-size="10">1234</text>
117 </g>
118
119 <!-- 4.x 4.y : four text chunks -->
120 <g transform="translate(0, 150)">
121 <use x="10" y="-10" xlink:href="#marker" fill="#8888ff"/>
122 <use x="20" y="-5" xlink:href="#marker" fill="#8888ff"/>
123 <use x="30" y="5" xlink:href="#marker" fill="#8888ff"/>
124 <use x="40" y="10" xlink:href="#marker" fill="#8888ff"/>
125 <text x="10 20 30 40" y="-10 -5 5 10" font-family="embeded" font-size="10">1234</text>
126 </g>
127
128 <!-- 2.x 4.y : four text chunks -->
129 <g transform="translate(0, 180)">
130 <use x="10" y="-10" xlink:href="#marker" fill="#8888ff"/>
131 <use x="20" y="-5" xlink:href="#marker" fill="#8888ff"/>
132 <use x="35" y="5" xlink:href="#marker" fill="#8888ff"/>
133 <use x="50" y="10" xlink:href="#marker" fill="#8888ff"/>
134 <text x="10 20" y="-10 -5 5 10" font-family="embeded" font-size="10">1234</text>
135 </g>
136
137 <!-- 1.x 2.y : two text chunks -->
138 <g transform="translate(0, 210)">
139 <use x="0" y="-10" xlink:href="#marker" fill="#8888ff"/>
140 <use x="15" y="5" xlink:href="#marker" fill="#8888ff"/>
141 <text x="0" y="-10 5" font-family="embeded" font-size="10">1234</text>
142 </g>
143
144 <!-- 4.x 2.y : four text chunks -->
145 <g transform="translate(0, 240)">
146 <use x="10" y="-10" xlink:href="#marker" fill="#8888ff"/>
147 <use x="20" y="-5" xlink:href="#marker" fill="#8888ff"/>
148 <use x="30" y="-5" xlink:href="#marker" fill="#8888ff"/>
149 <use x="40" y="-5" xlink:href="#marker" fill="#8888ff"/>
150 <text x="10 20 30 40" y="-10 -5" font-family="embeded" font-size="10">1234</text>
151 </g>
152
153 <!-- 2.x 2.y : two text chunks -->
154 <g transform="translate(0, 270)">
155 <use x="10" y="-10" xlink:href="#marker" fill="#8888ff"/>
156 <use x="60" y="-5" xlink:href="#marker" fill="#8888ff"/>
157 <text x="10 60" y="-10 -5" font-family="embeded" font-size="10">1234</text>
158 </g>
159
160 </g>
161 </g>
162 </g>
163 </g>
164 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
165 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
166 </g>
167 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
168 <!-- comment out this watermark once the test is approved -->
169 <!--<g id="draft-watermark">
170 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
171 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
172 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
173 </g>-->
174 </svg>