soimy / msdf-bmfont-xml

Generate BMFont texture and spec XML using msdfgen
https://soimy.github.io/msdf-bmfont-xml/
MIT License
315 stars 46 forks source link

Doesn't work with npm run script #61

Open Zemledelec opened 3 years ago

Zemledelec commented 3 years ago

Hi! Thanks again, for this super tool! It works perfect from cli, but when I try to run npm run font, for example it stucks on zero and do nothing here is an error:

npm run script: font: "msdf-bmfont.cmd --reuse -i .\\fonts\\charset.roboto.txt -m 512,512 -f json -o .\\fonts\\Roboto-Regular.png -s 32 -r 8 -p 1 -t msdf .\\fonts\\Roboto-Regular.ttf" Error: image

It works fine from cli, but not from npm. By the way source folder placed in D:\My Projects\....

Cheers!

Zemledelec commented 2 years ago

I use npx

soimy commented 2 years ago

It seems to be a bug while handling path with space on windows cmd.