Closed gerchicov closed 2 years ago
Can you send me a full SVG file with the issue? It may be a bug with MonkSVG parsing. Can you repro this hardcoded into code?
I have sent this file to your email
if it will be easier for you here is a java-library with a similar svg-parsing: https://github.com/pents90/svg-android/blob/master/svgandroid/src/com/larvalabs/svgandroid/SVGParser.java but they use the same function for both "S s" and "C c" tags and it works
so my temporary solution is replacing "S s" drawing calls with "C c" calls and this android library helped very much
it is a code from MonkSVG, but it uses MonkVG and shows its bug. I have a code which draws a circle:
Description is here (8.3.6 The cubic Bézier curve commands): http://www.w3.org/TR/SVG/paths.html#PathDataMovetoCommands
So the circle is drawn as 3 segments using the first function and one segment is drawn using the second one. The first 3 segments look like a parts of a circle and the last segment looks like a part of a square with rounded corners.