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

mkdir error if filename containt space(s) #18

Open
xerc opened this issue Nov 18, 2022 · 1 comment
Open

mkdir error if filename containt space(s) #18

xerc opened this issue Nov 18, 2022 · 1 comment

Comments

@xerc
Copy link

xerc commented Nov 18, 2022

ver. 5.0.0

fs.mkdirSync(dir, { recursive: true });

zsh@osx

$ glyphhanger --subset="New Font.ttf" --formats=woff,woff2,woff-zopfli --json --css
$ glyphhanger --subset=New\ Font.ttf --formats=woff,woff2,woff-zopfli --json --css
Writing CSS file: New Font.css
GlyphHangerFontFace Error:  Error: ENOENT: no such file or directory, mkdir
    at Object.mkdirSync (node:fs:1389:3)
    at GlyphHangerFontFace.writeCSSFiles (/usr/local/lib/node_modules/glyphhanger/src/GlyphHangerFontFace.js:84:7)
    at /usr/local/lib/node_modules/glyphhanger/cmd.js:143:14 {
  errno: -2,
  syscall: 'mkdir',
  code: 'ENOENT'
@lloydjatkinson
Copy link

lloydjatkinson commented Sep 19, 2024

I also get this and fixed it with:

--- subset=inter-v3-latin-regular.woff2 --formats=woff2 --css
+++ subset=./inter-v3-latin-regular.woff2 --formats=woff2 --css

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