Inheritance: SvgVisualElement
Esempio n. 1
0
 public TextDrawingState(TextDrawingState parent, SvgTextBase element)
 {
     this.Element = element;
     this.Renderer = parent.Renderer;
     this.Parent = parent;
     this.Current = parent.Current;
     this.BaselinePath = element.GetBaselinePath(parent.Renderer) ?? parent.BaselinePath;
     var currPathLength = element.GetAuthorPathLength();
     _authorPathLength = currPathLength == 0 ? parent._authorPathLength : currPathLength;
 }
Esempio n. 2
0
 public TextDrawingState(ISvgRenderer renderer, SvgTextBase element)
 {
     this.Element = element;
     this.Renderer = renderer;
     this.Current = PointF.Empty;
     _xAnchor = 0;
     this.BaselinePath = element.GetBaselinePath(renderer);
     _authorPathLength = element.GetAuthorPathLength();
 }