When the ULP encountered a 'h' or 'v' command, it would draw incorrectly. This was fixed by re-initiating tmp_coords[0] and tmp_coords[1] to zero at the beginning of the while loop.
I also removed the line:
sprintf(svg_pts[i], "%s,%s", svg_pts[i], svg_pts[i+1]);
from two places. this seems to be a patch for previous SVG formats that used a space instead of a comma for M x.xxx y.yyy
When the ULP encountered a 'h' or 'v' command, it would draw incorrectly. This was fixed by re-initiating tmp_coords[0] and tmp_coords[1] to zero at the beginning of the while loop.
I also removed the line: sprintf(svg_pts[i], "%s,%s", svg_pts[i], svg_pts[i+1]); from two places. this seems to be a patch for previous SVG formats that used a space instead of a comma for M x.xxx y.yyy