Debian Codegraph @

test_non_regression/fail/font/fonts-desc-03-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="CL" author="CN" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: fonts-desc-03-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/fonts.html#SVGFontsOverview">
17 <p>
18 This test demonstrates CSS font matching based on the
19 font-weight attribute.
20 </p>
21 <p>
22 The first line tests selecting a bold font.
23 </p>
24 <p>
25 The second line tests that order of font definition does not
26 effect selection.
27 </p>
28 <p>
29 The last line tests basic font-weight selection using
30 font-weight numbers.
31 </p>
32 </d:testDescription>
33 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
34 <p>
35 Run the test. No interaction required.
36 </p>
37 </d:operatorScript>
38 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
39 <p>
40 The first line should show a square and then a triangle.
41 </p>
42 <p>
43 The second line should show a triangle and then a square.
44 </p>
45 <p>
46 The last line should show a square then a triangle.
47 </p>
48 </d:passCriteria>
49 </d:SVGTestCase>
50 <title id="test-title">$RCSfile: fonts-desc-03-t.svg,v $</title>
51 <defs>
52 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
53 <font-face-src>
54 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
55 </font-face-src>
56 </font-face>
57 </defs>
58 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
59 <defs>
60 <font horiz-adv-x="500">
61 <font-face font-family="SVGFont1" font-weight="normal" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
62 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
63 <glyph unicode=" " glyph-name="space"/>
64 <glyph unicode="a" glyph-name="square" d="M0 250L500 250L500 750L0 750Z"/>
65 </font>
66
67 <font horiz-adv-x="500">
68 <font-face font-family="SVGFont1" font-weight="bold" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
69 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
70 <glyph unicode=" " glyph-name="space"/>
71 <glyph unicode="a" glyph-name="upward-triangle" d="M0 0L500 0L250 900Z"/>
72 </font>
73
74
75 <font horiz-adv-x="500">
76 <font-face font-family="SVGFont2" font-weight="bold" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
77 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
78 <glyph unicode=" " glyph-name="space"/>
79 <glyph unicode="a" glyph-name="square" d="M0 250L500 250L500 750L0 750Z"/>
80 </font>
81
82 <font horiz-adv-x="500">
83 <font-face font-family="SVGFont2" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
84 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
85 <glyph unicode=" " glyph-name="space"/>
86 <glyph unicode="a" glyph-name="upward-triangle" d="M0 0L500 0L250 900Z"/>
87 </font>
88
89
90 <font horiz-adv-x="500">
91 <font-face font-family="SVGFont3" font-weight="300" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
92 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
93 <glyph unicode=" " glyph-name="space"/>
94 <glyph unicode="a" glyph-name="square" d="M0 250L500 250L500 750L0 750Z"/>
95 </font>
96
97 <font horiz-adv-x="500">
98 <font-face font-family="SVGFont3" font-weight="700" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
99 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
100 <glyph unicode=" " glyph-name="space"/>
101 <glyph unicode="a" glyph-name="upward-triangle" d="M0 0L500 0L250 900Z"/>
102 </font>
103
104 </defs>
105
106 <g font-size="50">
107 <text x="50" y="50" font-family="SVGFont1">a</text>
108 <text x="100" y="50" font-family="SVGFont1" font-weight="bold">a</text>
109
110 <text x="50" y="150" font-family="SVGFont2">a</text>
111 <text x="100" y="150" font-family="SVGFont2" font-weight="bold">a</text>
112
113 <text x="50" y="250" font-family="SVGFont3" font-weight="100">a</text>
114 <text x="100" y="250" font-family="SVGFont3" font-weight="900">a</text>
115 </g>
116
117 </g>
118 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
119 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
120 </g>
121 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
122 <!-- comment out this watermark once the test is approved
123 <g id="draft-watermark">
124 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
125 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
126 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
127 </g> -->
128 </svg>