You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The state.NumChars is 1 and the origState.NumChars is 0, so it cause that the origState.LetterSpacingAdjust contains an infinity value and it produces an overflow error. This problem doesn't happen when there are more than one character or there aren't tspan elements as content of the text element.
See following StackTrace:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawPath(Pen pen, GraphicsPath path)
at Svg.SvgRenderer.DrawPath(Pen pen, GraphicsPath path) in D:\Samples\SVG-nuget2.4.3\Source\Rendering\SvgRenderer.cs:line 76
at Svg.SvgVisualElement.RenderStroke(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Basic Shapes\SvgVisualElement.cs:line 343
at Svg.SvgVisualElement.RenderFillAndStroke(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Basic Shapes\SvgVisualElement.cs:line 216
at Svg.SvgTextBase.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Text\SvgTextBase.cs:line 246
at Svg.SvgElement.RenderChildren(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\SvgElement.cs:line 802
at Svg.SvgTextBase.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Text\SvgTextBase.cs:line 247
at Svg.SvgElement.RenderChildren(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\SvgElement.cs:line 802
at Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter) in D:\Samples\SVG-nuget2.4.3\Source\Basic Shapes\SvgVisualElement.cs:line 168
at Svg.SvgVisualElement.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Basic Shapes\SvgVisualElement.cs:line 129
at Svg.SvgGroup.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Document Structure\SvgGroup.cs:line 55
at Svg.SvgElement.RenderChildren(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\SvgElement.cs:line 802
at Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter) in D:\Samples\SVG-nuget2.4.3\Source\Basic Shapes\SvgVisualElement.cs:line 168
at Svg.SvgVisualElement.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Basic Shapes\SvgVisualElement.cs:line 129
at Svg.SvgGroup.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Document Structure\SvgGroup.cs:line 55
at Svg.SvgElement.RenderChildren(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\SvgElement.cs:line 802
at Svg.SvgElement.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\SvgElement.cs:line 790
at Svg.SvgFragment.Render(ISvgRenderer renderer) in D:\Samples\SVG-nuget2.4.3\Source\Document Structure\SvgFragment.cs:line 169
at Svg.SvgDocument.Draw(ISvgRenderer renderer, ISvgBoundable boundable) in D:\Samples\SVG-nuget2.4.3\Source\SvgDocument.cs:line 428
at Svg.SvgDocument.Draw(Bitmap bitmap) in D:\Samples\SVG-nuget2.4.3\Source\SvgDocument.cs:line 526
at Svg.SvgDocument.Draw() in D:\Samples\SVG-nuget2.4.3\Source\SvgDocument.cs:line 506
at SVGViewer.SVGViewer.RenderSvg(SvgDocument svgDoc) in D:\Samples\SVG-nuget2.4.3\Samples\SVGViewer\SvgViewer.cs:line 73
at SVGViewer.SVGViewer.open_Click(Object sender, EventArgs e) in D:\Samples\SVG-nuget2.4.3\Samples\SVGViewer\SvgViewer.cs:line 30
You can reproduce it with the SVGViewer application and the following attached files: SVGs.zip
The text was updated successfully, but these errors were encountered:
Overflow error is thrown by SetPath method of SvgTextBase class when a text element contains a tspan element to format it and it contains just one character. You can find the problem on following line:
https://github.com/vvvv/SVG/blob/43f5accbffdf156fd2aa052ac8522fd48551a3f3/Source/Text/SvgTextBase.cs#L371
The state.NumChars is 1 and the origState.NumChars is 0, so it cause that the origState.LetterSpacingAdjust contains an infinity value and it produces an overflow error. This problem doesn't happen when there are more than one character or there aren't tspan elements as content of the text element.
See following StackTrace:
You can reproduce it with the SVGViewer application and the following attached files:
SVGs.zip
The text was updated successfully, but these errors were encountered: