Debian Codegraph @

test_non_regression/fail/font/fonts-glyph-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="issue"
15 version="$Revision: 1.6 $" testname="$RCSfile: fonts-glyph-03-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/fonts.html#GlyphElement">
17 <p>ISSUE: http://www.w3.org/2011/02/27-svg-irc#T22-20-51 - unapprove test for now</p>
18 <p>
19 This files tests the lang attribute support of the glyph
20 element. The test should produce an upward-triangle for
21 the first (en) test element and a square for the second (fr)
22 and third (fr-ca) text element. In the third case, a glyph for
23 fr is also suitable for a more specific language text fr-ca.
24 In the fourth case, no suitable language specific or general
25 glyph is provided by the test so a fallback font for the letter
26 'a' should be used. A triangle or square must not be
27 displayed in the fourth case.
28 </p>
29 </d:testDescription>
30 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
31 <p>Run the test. No interaction required.</p>
32 </d:operatorScript>
33 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
34 <p>
35 The test is passed if, from top to bottom, you see an upward pointing triangle, then two squares, and finally the letter "a".
36 </p>
37 </d:passCriteria>
38 </d:SVGTestCase>
39 <title id="test-title">$RCSfile: fonts-glyph-03-t.svg,v $</title>
40 <defs>
41 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
42 <font-face-src>
43 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
44 </font-face-src>
45 </font-face>
46 </defs>
47 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
48 <defs>
49 <font horiz-adv-x="500">
50 <font-face font-family="SVGFont" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
51 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
52 <glyph unicode=" " glyph-name="space"/>
53 <glyph unicode="a" glyph-name="upward-triangle" lang="en" d="M0 0L500 0L250 900Z"/>
54 <glyph unicode="a" glyph-name="square" lang="fr" d="M0 250L500 250L500 750L0 750Z"/>
55 </font>
56 </defs>
57 <g font-family="SVGFont" font-size="50">
58 <!-- Should produce an upward pointing triangle -->
59 <text x="50" y="50" xml:lang="en">a</text>
60 <!-- Should produce a square -->
61 <text x="50" y="120" xml:lang="fr">a</text>
62 <!-- Should also produce a square -->
63 <text x="50" y="190" xml:lang="fr-ca">a</text>
64 <!-- Should fall back to another font -->
65 <text x="50" y="260" xml:lang="de">a</text>
66 </g>
67 </g>
68 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
69 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
70 </g>
71 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
72 <!-- comment out this watermark once the test is approved -->
73 <g id="draft-watermark">
74 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
75 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
76 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
77 </g>
78 </svg>