Debian Codegraph @

test_non_regression/fail/text/text-fonts-02-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="Chris lilley" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: text-fonts-02-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#FontPropertiesUsedBySVG">
17 <p>
18 Purpose of test is to determine if the font weight is being
19 correctly rendered. A number of font families are specified. The
20 numerical weight values (100 to 900) should show the lighter weights
21 on the lower numbers and the heavier weights on the larger numbers.
22 Heavier is defined to mean 'no lighter'.
23 </p>
24 <p>
25 If only one font weight is available, they should all display at the
26 same weight. The transition from black to green figures shows the
27 correct light to bold transition for the common case where two
28 weights are available. If three or more weights are available, see
29 the CSS2 specification for how these are allocated to the nine
30 weight numbers.
31 </p>
32 <p>
33 The absolute keywords 'normal' and bold' are tested
34 by the first two lines on the right hand side of the test,
35 the third line of text tests the to 'bolder'
36 relative keyword and the fourth tests the
37 'lighter' relative keyword.
38 </p>
39 </d:testDescription>
40 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
41 <p>
42 Run the test. No interaction required.
43 </p>
44 </d:operatorScript>
45 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
46 <p>
47 The numerical weight values (100 to 900) should show the lighter weights on the
48 lower numbers and the heavier weights on the larger numbers. Heavier is defined
49 to mean 'no lighter'.
50 </p>
51 </d:passCriteria>
52 </d:SVGTestCase>
53 <title id="test-title">$RCSfile: text-fonts-02-t.svg,v $</title>
54 <defs>
55 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
56 <font-face-src>
57 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
58 </font-face-src>
59 </font-face>
60 </defs>
61 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
62 <g font-family="Georgia,'Times New Roman',Times,'MS Mincho',serif" font-size="30">
63 <text font-weight="100" x="360" y="50">100</text>
64 <text font-weight="200" x="360" y="85">200</text>
65 <text font-weight="300" x="360" y="120">300</text>
66 <text font-weight="400" x="360" y="155">400</text>
67 <text font-weight="500" x="360" y="190">500</text>
68 <text fill="green" font-weight="600" x="360" y="225">600</text>
69 <text fill="green" font-weight="700" x="360" y="260">700</text>
70 <text fill="green" font-weight="800" x="360" y="295">800</text>
71 <text fill="green" font-weight="900" x="360" y="330">900</text>
72 <text font-weight="bold" x="60" y="80">This is bold</text>
73 <text font-weight="normal" x="60" y="130">This is normal</text>
74 <g font-weight="normal" fill="blue">
75 <text font-weight="bolder" x="60" y="180">Blue is bolder</text>
76 </g>
77 <g font-weight="bold" fill="blue">
78 <text font-weight="lighter" x="60" y="230">Blue is lighter</text>
79 </g>
80 </g>
81 </g>
82 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
83 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
84 </g>
85 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
86 <!-- comment out this watermark once the test is approved -->
87 <!--<g id="draft-watermark">
88 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
89 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
90 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
91 </g>-->
92 </svg>