Not sure if I should report this bug here or on gulp-iconfont, let me know if I should move it.
I'd like to report a regression bug regarding the parsing of path tag in latest gulp-iconfont (9.0.1). Through gulp-iconfont, I'm generating a font using a bunch of SVGs, among which there is the following one:
I'd expect my the SVG to be parsed since it's valid and working in gulp-iconfont@9.0.0
Actual behavior
Parsing fails with below error. Important note, the bug goes away when I specify the y param of transform="translate(-86.17)".
Error: Got an error parsing the glyph "wish-full": path must start with moveto.
at SAXStream.saxStream.on (<my_project>/node_modules/svgicons2svgfont/src/index.js:241:28)
at emitOne (events.js:115:13)
at SAXStream.emit (events.js:210:7)
at SAXParser.me._parser.(anonymous function) [as onopentag] (<my_project>/node_modules/sax/lib/sax.js:258:17)
at emit (<my_project>/node_modules/sax/lib/sax.js:640:35)
at emitNode (<my_project>/node_modules/sax/lib/sax.js:645:5)
at openTag (<my_project>/node_modules/sax/lib/sax.js:841:5)
at SAXParser.write (<my_project>/node_modules/sax/lib/sax.js:1308:13)
at SAXStream.write (<my_project>/node_modules/sax/lib/sax.js:239:18)
at PassThrough.ondata (<my_project>/node_modules/readable-stream/lib/_stream_readable.js:541:20)
at emitOne (events.js:115:13)
at PassThrough.emit (events.js:210:7)
at PassThrough.Readable.read (<my_project>/node_modules/readable-stream/lib/_stream_readable.js:386:26)
at flow (<my_project>/node_modules/readable-stream/lib/_stream_readable.js:734:34)
at resume_ (<my_project>/node_modules/readable-stream/lib/_stream_readable.js:717:3)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
Not sure if I should report this bug here or on gulp-iconfont, let me know if I should move it.
I'd like to report a regression bug regarding the parsing of path tag in latest gulp-iconfont (9.0.1). Through gulp-iconfont, I'm generating a font using a bunch of SVGs, among which there is the following one:
Expected behavior
I'd expect my the SVG to be parsed since it's valid and working in gulp-iconfont@9.0.0
Actual behavior
Parsing fails with below error. Important note, the bug goes away when I specify the y param of
transform="translate(-86.17)"
.Debugging informations
node -v
result:npm -v
result: