Skip to content

Error generating fonts #7

Description

@JamesLMilner

Hey, thanks for the plugin, appreciated.

I'm struggling to get it to run however. On gulp fonts I receive an error:

17:22:13] Starting 'fonts'...
Font icons with 3 glyphs created.
[17:22:13] icons.eot
[17:22:13] icons.woff
[17:22:13] icons.ttf
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open '/tmp/d-11766-20220-1gyb7h8.p35drc0udi/icons.eot'
    at Error (native)

Here is my code:

var webfont_config = {
  // dest: './../public/css/fonts',
  // destCss: './../public/css/external',
  options: {
    font: 'three-d-repo',
    fontFilename: 'three-d-repo',
    htmlDemo: false
  }
}

gulp.task('fonts', function () {
  return gulp.src('./../icons/*.svg')
    .pipe(webfont(webfont_config))
    .pipe(print())
    .pipe(gulp.dest("./")))
});

Any ideas what might be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions