Debian Codegraph @

test_non_regression/fail/font/fonts-desc-01-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="CN" author="CN" status="issue"
15 version="$Revision: 1.6 $" testname="$RCSfile: fonts-desc-01-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 tests case show the behaviour of CSS font matching
19 based on the font-size attribute.
20 </p>
21 <!-- the test creator appears to have misunderstood the specification here.
22 None of the supplied fonts specifies a font-size descriptor.
23 Its not clear what this test is trying to test.
24 -->
25 </d:testDescription>
26 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 Run the test. No interaction required.
29 </p>
30 </d:operatorScript>
31 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 The most correct output is
34 two squares, the exact match of the size, but as these are
35 vector fonts, and therefore scalable, the user agent can
36 use a margin of error, so conformant results may vary.
37 </p>
38 </d:passCriteria>
39 </d:SVGTestCase>
40 <title id="test-title">$RCSfile: fonts-desc-01-t.svg,v $</title>
41 <defs>
42 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
43 <font-face-src>
44 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
45 </font-face-src>
46 </font-face>
47 </defs>
48 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
49 <defs>
50 <font horiz-adv-x="500">
51 <font-face font-family="SVGFont1" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
52 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
53 <glyph unicode=" " glyph-name="space"/>
54 <glyph unicode="a" glyph-name="diamond" d="M0 500L250 250L500 500L250 750Z"/>
55 </font>
56
57 <font horiz-adv-x="500">
58 <font-face font-family="SVGFont1" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
59 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
60 <glyph unicode=" " glyph-name="space"/>
61 <glyph unicode="a" glyph-name="square" d="M0 250L250 250L250 500L0 500Z"/>
62 </font>
63
64 <font horiz-adv-x="500">
65 <font-face font-family="SVGFont1" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
66 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
67 <glyph unicode=" " glyph-name="space"/>
68 <glyph unicode="a" glyph-name="upward-triangle" d="M0 0L500 0L250 900Z"/>
69 </font>
70
71 <font horiz-adv-x="500">
72 <font-face font-family="SVGFont2" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
73 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
74 <glyph unicode=" " glyph-name="space"/>
75 <glyph unicode="a" glyph-name="upward-triangle" d="M0 0L500 0L250 900Z"/>
76 </font>
77
78 <font horiz-adv-x="500">
79 <font-face font-family="SVGFont2" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
80 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
81 <glyph unicode=" " glyph-name="space"/>
82 <glyph unicode="a" glyph-name="square" d="M0 250L250 250L250 500L0 500Z"/>
83 </font>
84
85 <font horiz-adv-x="500">
86 <font-face font-family="SVGFont2" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
87 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
88 <glyph unicode=" " glyph-name="space"/>
89 <glyph unicode="a" glyph-name="diamond" d="M0 500L250 250L500 500L250 750Z"/>
90 </font>
91 </defs>
92 <g font-size="50" transform="translate(50, 50)">
93 <text x="50" y="50" font-family="SVGFont1">a</text>
94 <text x="100" y="50" font-family="SVGFont2">a</text>
95 </g>
96 </g>
97 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
98 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
99 </g>
100 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
101 <!-- comment out this watermark once the test is approved -->
102 <g id="draft-watermark">
103 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
104 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
105 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
106 </g>
107 </svg>