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.
I use the font with file name
LightNovelPOP_FONT/깋긩긹POP.otf
and got the issueafter 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.