| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="UTF-8"?> | |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics
/SVG/1.1/DTD/svg11-basic.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 <!-- text-path-01-f --> | |
| 13 <!-- renamed for Basic suite to text-path-01-b --> | |
| 14 <!-- --> | |
| 15 <!-- Test viewer capability to handle the basics of 'textPath'. --> | |
| 16 <!-- --> | |
| 17 <!-- Author : Shenxue Zhou 15-March-2000 --> | |
| 18 <!-- Revised for 1.1 : Tolga Capin 14-Feb-2002 --> | |
| 19 <!-- Revised for Basic: Takeshi Sagara 04-Jul-2002 --> | |
| 20 <!-- --> | |
| 21 <!-- History: --> | |
| 22 <!-- 15-Mar-2000, SZ: Serial#3 created. --> | |
| 23 <!-- 15-Mar-2000, LH=" fix names, legend" Serial#4. --> | |
| 24 <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> | |
| 25 <!-- 23-Aug-2000, LH=" add test-body-content 'g'" ser#5. --> | |
| 26 <!-- 04-Jul-2002, TS add viewBox and reduce some texts. --> | |
| 27 <!-- --> | |
| 28 <!-- ===================================================================== --> | |
| 29 <!--======================================================================--> | |
| 30 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> | |
| 31 <!--= log messages, and therefore is no longer in the preceding preamble.=--> | |
| 32 <!--======================================================================--> | |
| 33 <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:
xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" v
iewBox="0 0 480 360"> | |
| 34 | |
| 35 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/
"> | |
| 36 <OperatorScript version="$Revision: 1.9 $" testname="text-path-0
1-b.svg"> | |
| 37 <Paragraph> | |
| 38 Test textPath element | |
| 39 </Paragraph> | |
| 40 </OperatorScript> | |
| 41 </SVGTestCase> | |
| 42 | |
| 43 <title id="test-title">text-path-01-b</title> | |
| 44 <desc id="test-desc">Test viewer capability to handle the basics of 'tex
tPath'.</desc> | |
| 45 <!--====================================================================
==--> | |
| 46 <!--Content of Test Case follows... ===================
==--> | |
| 47 <!--====================================================================
==--> | |
| 48 <g id="test-body-content"> | |
| 49 <defs> | |
| 50 <path id="Path1" fill="none" stroke="blue" d="M199 89.3
C206.6 66.6 235.8 13.2 270 30.3 286.6 38.6 298.9 59.4 310 73.3 321.7 87.9 338.6
99 356 103.3 387.3 111.1 396.6 90.4 418 74.3"/> | |
| 51 <path id="Path2" fill="none" stroke="blue" d="M33.5 145
.8 C41 123 70.3 69.7 104.5 86.8 121 95 133 116 144.5 129.8 156.2 144.4 173 155.5
190.5 159.8 221.8 167.6 231 146.9 252.5 130.8"/> | |
| 52 <path id="Path3" fill="none" stroke="blue" stroke-width=
"4" d="M113 233 L413 233 "/> | |
| 53 </defs> | |
| 54 <g id="text-on-path-01"> | |
| 55 <use xlink:href="#Path1" fill="none" stroke="blue" /> | |
| 56 <text font-size="36" font-family="Georgia" fill="black"
> | |
| 57 <textPath xlink:href="#Path1">Text on a path</te
xtPath> | |
| 58 </text> | |
| 59 </g> | |
| 60 <g id="text-on-path-02"> | |
| 61 <!-- using tspan to change text color and position --> | |
| 62 <use xlink:href="#Path2" fill="none" stroke="blue" /> | |
| 63 <text font-size="36" font-family="Georgia" fill="black"
> | |
| 64 <textPath xlink:href="#Path2"><tspan dy="-12" fi
ll="red" >Te</tspan><tspan dy="12">x</tspan>t on a path</textPath> | |
| 65 </text> | |
| 66 <rect x="17" y="169" width="274" height="41" fill="none"
stroke="black" /> | |
| 67 <text x="19" y="185" font-size="20" font-family="Arial"
>'tspan' subelement inside </text> | |
| 68 <text x="19" y="207" font-size="20" font-family="Arial"
>the 'textPath' element.</text> | |
| 69 </g> | |
| 70 <g id="text-on-path-03"> | |
| 71 <use xlink:href="#Path3" fill="none" stroke="blue" strok
e-width="4" /> | |
| 72 <text font-size="24" font-family="Arial" fill="black" > | |
| 73 <textPath xlink:href="#Path3" startOffset="33%">
The Text on path</textPath> | |
| 74 </text> | |
| 75 <rect x="118" y="250" width="260" height="41" fill="none
" stroke="black" /> | |
| 76 <text x="120" y="267" font-size="20" font-family="Arial"
>'startOffset' attribute of the</text> | |
| 77 <text x="120" y="287" font-size="20" font-family="Arial"
>'textPath' element.</text> | |
| 78 </g> | |
| 79 </g> | |
| 80 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="bl
ack">$Revision: 1.9 $</text> | |
| 81 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" s
troke="#000000"/> | |
| 82 <script> | |
| 83 if (window.testRunner) | |
| 84 window.testRunner.dumpSelectionRect(); | |
| 85 document.execCommand("SelectAll"); | |
| 86 </script> | |
| 87 </svg> | |
| 88 | |
| OLD | NEW |