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(); }
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; }