Debian Codegraph @

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