Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

There is error when generate one svg icon to font #51

Open
wszhi opened this issue Jun 29, 2018 · 3 comments
Open

There is error when generate one svg icon to font #51

wszhi opened this issue Jun 29, 2018 · 3 comments

Comments

@wszhi
Copy link

wszhi commented Jun 29, 2018

I followed the steps in Readme.

There is only one svg image in files, and code as below:


webfontsGenerator(
  {
    files: ['src/assets/icons/story-card.svg'],
    dest: 'icon-dist/'
  },
  function(error) {
    if (error) {
      console.log('Fail!', error);
    } else {
      console.log('Done!');
    }
  }
);

When I run, will return error, the error message is

Fail! Checksum error in glyf
@vahidshirvani
Copy link

I ran into the same issue.

@vahidshirvani
Copy link

It seems that this error is thrown from ttf2woff library. However when I manually generate a ttf from svg with svg2ttf and then use that ttf as input to ttf2woff then it works. So that means that this library has a bug somewhere in the font conversion chain.

@raykin
Copy link

raykin commented Nov 6, 2018

I face a same error when convert google logo svg. The google logo svg is single icon with multi color. The multi color property may cause the error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants