Mega Code Archive

 
Categories / XML / SVG
 

Using Text Decoration with Text Strings

<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="100%" height="100%"       xmlns="http://www.w3.org/2000/svg">   <g transform="translate(50,50)" font-size="48"                  fill="red" stroke="blue"                  stroke-width="2">     <text x="0" y="50">Regular Text</text>     <text x="0" y="150"            text-decoration="line-through">Deleted Text</text>     <text x="0" y="250"            text-decoration="underline">Underlined Text</text>   </g> </svg>