Debian Codegraph @

test_non_regression/fail/font/fonts-desc-04-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="reviewed"
15 version="$Revision: 1.7 $" testname="$RCSfile: fonts-desc-04-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-style attribute.
20 </p>
21 <p>
22 The first line of text tests selecting an italic font.
23 </p>
24 <p>
25 The second line tests that order of font definition
26 does not effect correct matching.
27 </p>
28 <p>
29 The third line tests selecting an italic and an oblique font.
30 Italic can match against oblique or italic, but all other values must match exactly.
31 The letter 'a' will be an UA-dependent default font-family,
32 it should be oblique, possiblely a transformation of a
33 normal font.
34 </p>
35 </d:testDescription>
36 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
37 <p>
38 Run the test. No interaction required.
39 </p>
40 </d:operatorScript>
41 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
42 <p>
43 The first line of text should produce a square followed
44 by a triangle.
45 </p>
46 <p>
47 The second line should produce a square followed
48 by a triangle.
49 </p>
50 <p>
51 The third line should produce in first place
52 either a triangle, a diamond, or a letter 'a' in some fallback font.
53 (All are correct,and depend on which font is chosen for fallback).
54 This is followed by two diamonds.
55 </p>
56 </d:passCriteria>
57 </d:SVGTestCase>
58 <title id="test-title">$RCSfile: fonts-desc-04-t.svg,v $</title>
59 <defs>
60 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
61 <font-face-src>
62 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
63 </font-face-src>
64 </font-face>
65 </defs>
66 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
67 <defs>
68 <font horiz-adv-x="500">
69 <font-face font-family="SVGFont1" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
70 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
71 <glyph unicode=" " glyph-name="space"/>
72 <glyph unicode="a" glyph-name="square" d="M0 250L500 250L500 750L0 750Z"/>
73 </font>
74
75 <font horiz-adv-x="500">
76 <font-face font-family="SVGFont1" font-style="italic" 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="upward-triangle" d="M0 0L500 0L250 900Z"/>
80 </font>
81
82
83 <font horiz-adv-x="500">
84 <font-face font-family="SVGFont2" font-style="italic" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
85 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
86 <glyph unicode=" " glyph-name="space"/>
87 <glyph unicode="a" glyph-name="upward-triangle" d="M0 0L500 0L250 900Z"/>
88 </font>
89
90 <font horiz-adv-x="500">
91 <font-face font-family="SVGFont2" 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
98 <font horiz-adv-x="500">
99 <font-face font-family="SVGFont3" font-style="italic" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
100 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
101 <glyph unicode=" " glyph-name="space"/>
102 <glyph unicode="a" glyph-name="square" d="M0 250L500 250L500 750L0 750Z"/>
103 </font>
104
105 <font horiz-adv-x="500">
106 <font-face font-family="SVGFont3" font-style="oblique" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
107 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
108 <glyph unicode=" " glyph-name="space"/>
109 <glyph unicode="a" glyph-name="upward-triangle" d="M0 0L500 0L250 900Z"/>
110 </font>
111
112
113 <font horiz-adv-x="500">
114 <font-face font-family="SVGFont4" font-style="italic" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
115 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
116 <glyph unicode=" " glyph-name="space"/>
117 <glyph unicode="a" glyph-name="square" d="M0 250L500 250L500 750L0 750Z"/>
118 </font>
119
120 <font horiz-adv-x="500">
121 <font-face font-family="SVGFont5" font-style="oblique" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
122 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
123 <glyph unicode=" " glyph-name="space"/>
124 <glyph unicode="a" glyph-name="diamond" d="M0 500L250 250L500 500L250 750Z"/>
125 </font>
126
127 </defs>
128
129 <g font-size="50">
130 <!-- This should produce a square followed by a triangle -->
131 <text x="50" y="50" font-family="SVGFont1">a</text>
132 <text x="100" y="50" font-family="SVGFont1" font-style="italic">a</text>
133
134 <!-- This should produce a square followed by a triangle -->
135 <text x="50" y="150" font-family="SVGFont2">a</text>
136 <text x="100" y="150" font-family="SVGFont2" font-style="italic">a</text>
137
138 <!-- This should produce a letter 'a' followed by a diamond -->
139 <text x="50" y="250" font-family="SVGFont4" font-style="oblique">a</text>
140 <text x="100" y="250" font-family="SVGFont4,SVGFont5" font-style="oblique">a</text>
141 <text x="150" y="250" font-family="SVGFont5" font-style="italic">a</text>
142 </g>
143 </g>
144 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
145 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
146 </g>
147 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
148 <!-- comment out this watermark once the test is approved -->
149 <g id="draft-watermark">
150 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
151 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
152 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
153 </g>
154 </svg>