text_2.svg 1002 B

12345678910111213141516171819202122232425262728
  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 viewBox="0 0 1000 300"
  5. xmlns="http://www.w3.org/2000/svg" version="1.1">
  6. <desc>Example text01</desc>
  7. <text x="100" y="50"
  8. font-family="Roboto" font-size="55" font-weight="normal" fill="blue" >
  9. Plain text Roboto</text>
  10. <text x="100" y="100"
  11. font-family="Verdana" font-size="55" font-weight="normal" fill="blue" >
  12. Plain text Verdana</text>
  13. <text x="100" y="150"
  14. font-family="Verdana" font-size="55" font-weight="bold" fill="blue" >
  15. Bold text Verdana</text>
  16. <!-- Show outline of canvas using 'rect' element -->
  17. <rect x="140" y="165" width="595" height="110"
  18. fill="none" stroke="red" stroke-width="2" />
  19. <text x="150" y="215"
  20. font-family="Roboto" font-size="55" fill="green" >
  21. <tspan stroke="red" font-weight="900" >Stroked bold line</tspan>
  22. <tspan dy="50">Line 3</tspan>
  23. </text>
  24. </svg>