Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'contours' of undefined #2

Closed
Wildhoney opened this issue Jul 28, 2015 · 4 comments
Closed

TypeError: Cannot read property 'contours' of undefined #2

Wildhoney opened this issue Jul 28, 2015 · 4 comments

Comments

@Wildhoney
Copy link

When I specify the text option – and specifically the i character, I receive:

TypeError: Cannot read property 'contours' of undefined at /Users/atimberlake/Webroot/Mobile/node_modules/gulp-fontmin/node_modules/fontmin/node_modules/fonteditor-ttf/lib/ttf/table/OS2.js:175:59

var alphaNumeric = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefgh';

return gulp.src('public/fonts/pt-sans-web/**.ttf')
           .pipe(fontmin({ text: alphaNumeric }))
           .pipe(gulp.dest('public/fonts'));

That above runs fine, but as soon as I append i to the end of alphaNumeric then the error is raised.

The font file I'm trying to minify is this one: https://www.dropbox.com/s/gv3yv4nnp8jigdk/PTS75F_W.ttf?dl=0

@junmer
Copy link
Contributor

junmer commented Jul 30, 2015

@Wildhoney thanks for your issue
please update to 0.7.2 to have a try

@Wildhoney
Copy link
Author

Thanks @junmer – could you please npm publish 0.7.2?

@junmer
Copy link
Contributor

junmer commented Jul 30, 2015

@Wildhoney 😅 pubed , thx

@Wildhoney
Copy link
Author

Much better! Thank you @junmer 👍

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

No branches or pull requests

2 participants