Debian Codegraph @

test_non_regression/svg/toap02.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="12cm" height="3.6cm" viewBox="0 0 1000 300" version="1.1"
5 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
6 <defs>
7 <path id="MyPath"
8 d="M 100 200
9 C 200 100 300 0 400 100
10 C 500 200 600 300 700 200
11 C 800 100 900 100 900 100" />
12 </defs>
13 <desc>Example toap02 - tspan within textPath</desc>
14
15 <use xlink:href="#MyPath" fill="none" stroke="red" />
16 <text font-family="Liberation Sans" font-size="42.5" fill="blue" >
17 <textPath xlink:href="#MyPath">
18 We go
19 <tspan dy="-30" fill="red" >
20 up
21 </tspan>
22 <tspan dy="30">
23 ,
24 </tspan>
25 then we go down, then up again
26 </textPath>
27 </text>
28
29 <!-- Show outline of canvas using 'rect' element -->
30 <rect x="1" y="1" width="998" height="298"
31 fill="none" stroke="blue" stroke-width="2" />
32 </svg>