How to print Text in SVG

In this article I have describe about example to print a message in XML
  • 1749

Read about SVG here

Print Text in SVG

<text> is define to print a Message.

Example

<?xml version="1.0" encoding="utf-8" ?>

<html>

  <body>

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1">

      <text x="0" y="15" fill="red">Welcome SVG</text>

    </svg>

  </body>

</html>

Output

 SVG Text.jpg

Define the code

  • XML define the namespace and version use the program.
  • x and y is define the axis of Text.
  • fill is define the color of Text.
  • Welcome SVG Text is define in the <text>. 

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

 

© 2020 DotNetHeaven. All rights reserved.