Example #1
0
 public TextShape(SVG svg, XmlNode node, Shape parent)
     : base(svg, node, parent)
 {
     this.X = XmlUtil.AttrValue(node, "x", 0);
     this.Y = XmlUtil.AttrValue(node, "y", 0);
     this.Text = node.InnerText;
     this.GetTextStyle(svg);
     // check for tSpan tag
     if (node.InnerXml.IndexOf("<") >= 0)
         this.TextSpan = this.ParseTSpan(svg, node.InnerXml);
     if (DefaultFill == null)
     {
         DefaultFill = new Fill(svg);
         DefaultFill.Color = svg.PaintServers.Parse("black");
     }
     if (DefaultStroke == null)
     {
         DefaultStroke = new Stroke(svg);
         DefaultStroke.Width = 0.1;
     }
 }