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

Issue with local font has special charater #41

Open
minhquankq opened this issue Feb 5, 2020 · 0 comments
Open

Issue with local font has special charater #41

minhquankq opened this issue Feb 5, 2020 · 0 comments

Comments

@minhquankq
Copy link

I use the font with file name LightNovelPOP_FONT/깋긩긹POP.otf and got the issue

return Canvas._registerFont(fs.realpathSync(src), fontFace)
                ^

Error: Could not parse font file
    at registerFont (D:\workspaces\font\node_modules\canvas\index.js:48:17)
    at text2png (D:\workspaces\font\node_modules\text2png\index.js:36:5)
    at generatePreviewImage (D:\workspaces\font\script\generate-font-preview.js:25:57)
    at main (D:\workspaces\font\script\generate-font-preview.js:34:5)
    at Object.<anonymous> (D:\workspaces\font\script\generate-font-preview.js:49:1)

after rename the file name, it worked correctly, but I use text2png to generate a lot of text preview of fonts, so i can not rename for all font files.

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

1 participant