|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
|
3 |
|
4 <!--======================================================================--> |
|
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
|
6 <!--= Institute of Technology, Institut National de Recherche en =--> |
|
7 <!--= Informatique et en Automatique, Keio University). All Rights =--> |
|
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
|
9 <!--======================================================================--> |
|
10 <!-- ===================================================================== --> |
|
11 <!-- --> |
|
12 <!-- rendering-text-BE-02.svg --> |
|
13 <!-- renamed for 1.1 suite to render-elems-08-t.svg --> |
|
14 <!-- --> |
|
15 <!-- This test validates that text can be both filled and stroked. --> |
|
16 <!-- --> |
|
17 <!-- Author : Vincent Hardy, 29-Feb-2000 --> |
|
18 <!-- Revised for 1.1 : Phil Armstrong Feb/11/2002 --> |
|
19 <!-- --> |
|
20 <!-- History: --> |
|
21 <!-- 29-Feb-2000, VH: Created. Matches 20000302 SVG spec. --> |
|
22 <!-- 11-Mar-2000, LH=" fixed names, focus, ids, framing rect" removed --> |
|
23 <!-- ineffective "text-anchor="middle"" ser#3 --> |
|
24 <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
|
25 <!-- 16-Aug-2000, LH: renaming, ser#4. --> |
|
26 <!-- --> |
|
27 <!-- ===================================================================== --> |
|
28 <!--======================================================================--> |
|
29 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
|
30 <!--= log messages, and therefore is no longer in the preceding preamble.=--> |
|
31 <!--======================================================================--> |
|
32 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" |
|
33 viewBox="0 0 480 360" width="100%" height="100%" version="1.1" baseProfile="tiny"> |
|
34 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
|
35 <OperatorScript version="$Revision: 1.3 $" testname="render-elems-02-b-c.svg"> |
|
36 <Paragraph> |
|
37 Verifies that text can be stroked. |
|
38 The test |
|
39 shows two 'A' characters that are both stroked and filled. |
|
40 </Paragraph> |
|
41 <Paragraph> |
|
42 The rendered image should match the reference image except for the text which may |
|
43 show minor layout differences. |
|
44 </Paragraph> |
|
45 </OperatorScript> |
|
46 </SVGTestCase> |
|
47 <title id="test-title">render-elems-08-t</title> |
|
48 <desc id="test-desc">This test validates that text can be both filled and stroked.</desc> |
|
49 <defs> |
|
50 <font id="MyFont" horiz-adv-x="416" > |
|
51 <font-face font-family="MyFont" |
|
52 units-per-em="1000" |
|
53 panose-1="2 0 0 6 3 0 0 2 0 4" |
|
54 ascent="700" |
|
55 descent="-127"/> |
|
56 <missing-glyph horiz-adv-x="500"/> |
|
57 <glyph unicode="A" glyph-name="A" horiz-adv-x="505" d="M73 700L5 0H155L170 165H335L350 0H500L432 700H73ZM183 315L205 550H300L322 315H183Z" /> |
|
58 <glyph unicode="B" glyph-name="B" horiz-adv-x="550" d="M40 700V0H510V280L423 350L510 420V700H40ZM360 550V471L306 420H190V550H360ZM190 280H306L360 229V150H190V280Z" /> |
|
59 </font> |
|
60 </defs> |
|
61 |
|
62 <!--======================================================================--> |
|
63 <!--Content of Test Case follows... =====================--> |
|
64 <!--======================================================================--> |
|
65 <g id="test-body-content"> |
|
66 <!-- ====================================================================== --> |
|
67 <!-- Now, fill and stroke. The fill should happen first --> |
|
68 <!-- ====================================================================== --> |
|
69 <text x="120" y="40" font-size="30" >Text fill and stroke</text> |
|
70 <g font-size="300" font-family="MyFont"> |
|
71 <text x="60" y="280" fill="#f82" stroke="red" stroke-width="12">A</text> |
|
72 <text x="260" y="280" fill="#9ae" stroke="navy" stroke-width="12">B</text> |
|
73 </g> |
|
74 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.3 $</text> |
|
75 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
|
76 </g> |
|
77 </svg> |
|
78 |