| 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 125 |
| 9 |
C 150 125 250 175 300 175 |
| 10 |
C 350 175 450 125 500 125 |
| 11 |
C 550 125 650 175 700 175 |
| 12 |
C 750 175 850 125 900 125" /> |
| 13 |
</defs> |
| 14 |
<desc>Example toap04 - text on a path layout rules</desc> |
| 15 |
|
| 16 |
<use xlink:href="#MyPath" fill="none" stroke="red" /> |
| 17 |
<text font-family="Liberation Sans" font-size="60" fill="blue" letter-spacing="2" > |
| 18 |
<textPath xlink:href="#MyPath"> |
| 19 |
Choose shame or get war |
| 20 |
</textPath> |
| 21 |
</text> |
| 22 |
|
| 23 |
<!-- Show outline of canvas using 'rect' element --> |
| 24 |
<rect x="1" y="1" width="998" height="298" |
| 25 |
fill="none" stroke="blue" stroke-width="2" /> |
| 26 |
</svg> |
| 27 |
|