Debian Codegraph @

test_non_regression/svg/tspan02.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="10cm" height="3cm" viewBox="0 0 1000 300"
5 xmlns="http://www.w3.org/2000/svg" version="1.1">
6 <desc>Example tspan02 - using tspan's dx and dy attributes
7 for incremental positioning adjustments</desc>
8
9 <g font-family="Liberation Sans" font-size="45" >
10 <text x="200" y="150" fill="blue" >
11 But you
12 <tspan dx="2em" dy="-50" font-weight="bold" fill="red" >
13 are
14 </tspan>
15 <tspan dy="100">
16 a peach!
17 </tspan>
18 </text>
19 </g>
20
21 <!-- Show outline of canvas using 'rect' element -->
22 <rect x="1" y="1" width="998" height="298"
23 fill="none" stroke="blue" stroke-width="2" />
24 </svg>
25