nanosvg icon indicating copy to clipboard operation
nanosvg copied to clipboard

Solved issue 167. Bug: complex path rendered wrong

Open SanCheung opened this issue 6 years ago • 2 comments

https://github.com/memononen/nanosvg/issues/167 complex path rendered wrong

Root cause: In the case of some compressed svgs, in the curve command("a/A"), parameters 3\4 may be merged.

SanCheung avatar Nov 12 '19 07:11 SanCheung

Check out the grammar: https://www.w3.org/TR/SVG/paths.html#PathDataBNF

  1. there can be any number of elliptical_arc_argument after the 'A/a'
  2. the flags are in positions 4 and 5, modulo 6 within the elliptical_arc_argument

tesch1 avatar Nov 12 '19 11:11 tesch1

Check out the grammar: https://www.w3.org/TR/SVG/paths.html#PathDataBNF

  1. there can be any number of elliptical_arc_argument after the 'A/a'
  2. the flags are in positions 4 and 5, modulo 6 within the elliptical_arc_argument

yes. I wrong. the flags are in positions 4 and 5, positions 3 is "x-axis-rotation"

SanCheung avatar Nov 13 '19 07:11 SanCheung

Thank you for the fix!

memononen avatar Nov 21 '22 20:11 memononen