Example #1
0
 public TextDrawingState(ISvgRenderer renderer, SvgTextBase element)
 {
     this.Element      = element;
     this.Renderer     = renderer;
     this.Current      = PointF.Empty;
     this.TextBounds   = RectangleF.Empty;
     _xAnchor          = 0;
     this.BaselinePath = element.GetBaselinePath(renderer);
     _authorPathLength = element.GetAuthorPathLength();
 }
Example #2
0
            public TextDrawingState(TextDrawingState parent, SvgTextBase element)
            {
                this.Element      = element;
                this.Renderer     = parent.Renderer;
                this.Parent       = parent;
                this.Current      = parent.Current;
                this.TextBounds   = parent.TextBounds;
                this.BaselinePath = element.GetBaselinePath(parent.Renderer) ?? parent.BaselinePath;
                var currPathLength = element.GetAuthorPathLength();

                _authorPathLength = currPathLength == 0 ? parent._authorPathLength : currPathLength;
            }