Debian Codegraph @

samples/tests/spec/text/textOnPath2.svg

raw
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">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
24
25 <svg xmlns="http://www.w3.org/2000/svg"
26 xmlns:xlink="http://www.w3.org/1999/xlink"
27 id="body" width="450" height="500" viewBox="0 0 450 500">
28
29 <title>Text on Path with trailing &lt;tspan></title>
30
31 <text class="title" x="50%" y="40"
32 >Text on Path with trailing &lt;tspan></text>
33
34 <rect fill="black" stroke="black" x="30" y="50" width="390" height="20"/>
35 <rect fill="white" stroke="black" x="30" y="70" width="390" height="120"/>
36 <text x="40" y="64" fill="white" font-size="14"
37 >Text with embedded textPath and multiple trailing tspan</text>
38
39 <rect fill="black" stroke="black" x="30" y="195" width="390" height="20"/>
40 <rect fill="white" stroke="black" x="30" y="215" width="390" height="120"/>
41 <text x="40" y="209" fill="white" font-size="14"
42 >textPath has startOffset="10%"</text>
43
44 <rect fill="black" stroke="black" x="30" y="340" width="390" height="20"/>
45 <rect fill="white" stroke="black" x="30" y="360" width="390" height="120"/>
46 <text x="40" y="354" fill="white" font-size="14"
47 >textPath with startOffset and text-anchor</text>
48 <defs>
49 <path id="path" style="fill:none; stroke:blue;"
50 d="M100 0 c0 -125 140 -125 140 0"/>
51 </defs>
52
53 <g transform="translate(40, 185)" >
54 <use xlink:href="#path"/>
55 <text x="10" y="0" fill="black">This is simple<textPath
56 fill="crimson" xlink:href="#path" startOffset="0%"
57 >text on a path<tspan fill="orange" dy="-10"
58 >with nested</tspan><tspan fill="green" dy="10"
59 > tspan</tspan></textPath
60 > xxx <tspan fill="blue" dx="10"
61 >all with </tspan> different links.</text>
62 </g>
63
64
65 <g transform="translate(40, 330)" >
66 <use xlink:href="#path"/>
67 <text x="10" y="0" fill="black">This is simple<textPath
68 fill="crimson" xlink:href="#path" startOffset="10%"
69 >text on a path<tspan fill="orange" dy="-10"
70 >with nested</tspan><tspan fill="green" dy="10"
71 > tspan</tspan></textPath
72 > xxx <tspan fill="blue" dx="10"
73 >all with </tspan> different links.</text>
74 </g>
75
76 <g transform="translate(40, 475)" >
77 <use xlink:href="#path"/>
78 <text x="10" y="0" fill="black">This is simple<textPath
79 fill="crimson" xlink:href="#path"
80 startOffset="50%" text-anchor="middle"
81 >text on a path<tspan fill="orange" dy="-10"
82 >with nested</tspan><tspan fill="green" dy="10"
83 > tspan</tspan></textPath
84 > xxx <tspan fill="blue" dx="10"
85 >all with </tspan> different links.</text>
86 </g>
87 </svg>