1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
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 <!-- ===================================================================== -->
12 <!-- rendering-text-BE-02.svg -->
13 <!-- renamed for 1.1 suite to render-elems-07-t.svg -->
15 <!-- This test validates that text can be both filled and stroked. -->
17 <!-- Author : Vincent Hardy, 29-Feb-2000 -->
18 <!-- Revised for 1.1 : Phil Armstrong Feb/11/2002 -->
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. -->
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 width=
"100%" height=
"100%" viewBox=
"0 0 480 360" version=
"1.1" baseProfile=
"tiny">
34 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/">
35 <OperatorScript version=
"$Revision: 1.4 $" testname=
"render-elems-07-t.svg">
37 Verifies that text can be stroked. The
39 shows two characters that are stroked and not filled.
42 The rendered image should match the reference image except for the text which may
43 show minor layout differences.
47 <title id=
"test-title">render-elems-
07-t
</title>
48 <desc id=
"test-desc">This test validates that text can be both stroked.
</desc>
50 <font id=
"MyFont" horiz-adv-x=
"416" >
51 <font-face font-family=
"MyFont"
53 panose-1=
"2 0 0 6 3 0 0 2 0 4"
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" />
61 <!--======================================================================-->
62 <!--Content of Test Case follows... =====================-->
63 <!--======================================================================-->
64 <g id=
"test-body-content">
65 <!-- ====================================================================== -->
66 <!-- Now, stroke text with two different stroke width and color -->
67 <!-- ====================================================================== -->
68 <text x=
"180" y=
"40" font-size=
"30" >Text stroke
</text>
69 <g font-size=
"300" font-family=
"MyFont">
70 <text x=
"60" y=
"280" fill=
"none" stroke=
"red" stroke-width=
"12">A
</text>
71 <text x=
"260" y=
"280" fill=
"none" stroke=
"navy" stroke-width=
"12">B
</text>
73 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.4 $
</text>
74 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>