1 <?xml version=
"1.0" standalone=
"no"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
7 Copyright 2003 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
22 <?xml-stylesheet type=
"text/css" href=
"../resources/test.css" ?>
24 <svg xmlns=
"http://www.w3.org/2000/svg"
25 xmlns:
xlink=
"http://www.w3.org/1999/xlink"
26 id=
"body" width=
"450" height=
"500" viewBox=
"0 0 450 500">
28 <title>Text on Path with for text with an 'x'
</title>
29 <text class=
"title" x=
"50%" y=
"40"
30 >Text on Path with for text with an 'x'
</text>
33 <path id=
"path" style=
"fill:none; stroke:blue;"
34 d=
"M100 0 c0 -125 140 -125 140 0"/>
37 <g transform=
"translate(40, 185)" >
38 <rect fill=
"black" stroke=
"black" x=
"-10" y=
"-135"
39 width=
"390" height=
"20"/>
40 <rect fill=
"white" stroke=
"black" x=
"-10" y=
"-115"
41 width=
"390" height=
"120"/>
42 <text x=
"-10" y=
"-120" fill=
"white" font-size=
"14"
43 >Text with one textPath child and
x=
"10"</text>
45 <use xlink:
href=
"#path" />
46 <text x=
"10" y=
"0" fill=
"black"><textPath
47 fill=
"crimson" xlink:
href=
"#path" startOffset=
"50%"
48 text-anchor=
"middle">Text on a path for text w/ 'x'.
</textPath
52 <g transform=
"translate(40, 330)" >
53 <rect fill=
"black" stroke=
"black" x=
"-10" y=
"-135"
54 width=
"390" height=
"20"/>
55 <rect fill=
"white" stroke=
"black" x=
"-10" y=
"-115"
56 width=
"390" height=
"120"/>
57 <text x=
"-10" y=
"-120" fill=
"white" font-size=
"14"
58 >Text with one textPath child and
x=
"100"</text>
60 <use xlink:
href=
"#path" />
61 <text x=
"100" y=
"0" fill=
"black"><textPath
62 fill=
"crimson" xlink:
href=
"#path" startOffset=
"50%"
63 text-anchor=
"middle">Text on a path for text w/ 'x'.
</textPath
67 <g transform=
"translate(40, 475)" >
68 <rect fill=
"black" stroke=
"black" x=
"-10" y=
"-135"
69 width=
"390" height=
"20"/>
70 <rect fill=
"white" stroke=
"black" x=
"-10" y=
"-115"
71 width=
"390" height=
"120"/>
72 <text x=
"-10" y=
"-120" fill=
"white" font-size=
"14"
73 >Text with one textPath child and
x=
"-100" y=
"10"</text>
75 <use xlink:
href=
"#path" />
76 <text x=
"-100" y=
"10" fill=
"black"><textPath
77 fill=
"crimson" xlink:
href=
"#path" startOffset=
"50%"
78 text-anchor=
"middle">Text on a
<tspan x=
"50"
79 >path for text w/ 'x'.
</tspan></textPath