nfroidure/gulp-iconfont

the font is not generated as expected.

Closed this issue · 2 comments

I have used the following code to generated an iconfont from two svgs.

gulp.task('generateFontsFromSvg',function(){
    var fontName = 'newcore-'+ Date.now();
    return gulp.src(['app/base/svg/*.svg'])
        .pipe(iconfontCss({
            fontName: fontName,
            path: 'app/base/svg/_icons.scss',
            targetPath: '../svg.scss',
            fontPath: '../base/fonts/'
        }))
        .pipe(iconfont({
            fontName: fontName,
            formats: ['ttf', 'eot', 'woff','svg','woff2'], 
            fontHeight:1024,
            normalize:true
        }))
        .pipe(gulp.dest('app/base/fonts'));
});

However, the result is as followings,

image

the font is not generated . while other svg can be transform into iconfont successfully.

Attach the svg here:
svg.zip

Closing since no feedback.