| 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 tspan01 - using tspan to change visual attributes</desc> |
| 7 |
|
| 8 |
<g font-family="Liberation Sans" font-size="45" > |
| 9 |
<text x="200" y="150" fill="blue" > |
| 10 |
You are |
| 11 |
<tspan font-weight="bold" fill="red" >not</tspan> |
| 12 |
a banana. |
| 13 |
</text> |
| 14 |
</g> |
| 15 |
|
| 16 |
<!-- Show outline of canvas using 'rect' element --> |
| 17 |
<rect x="1" y="1" width="998" height="298" |
| 18 |
fill="none" stroke="blue" stroke-width="2" /> |
| 19 |
</svg> |
| 20 |
|