"Could not find MIME for Buffer <null>" on loadFont with fnt file
- Dominant language
- TypeScript
- Stars
- 14.7k
- Forks
- 777
- PR merge metrics
- No merged PRs in 30d
Description
# Expected Behavior
```js
Jimp.loadFont("path/to/fnt/file")
```
should load the font from a fnt file
# Current Behavior
Using jimp.loadFont throws an error about MIME
# Failure Information (for bugs)
Error:
```
Error: Could not find MIME for Buffer
at Jimp.parseBitmap (F:\WORKSPACE\image\node_modules\@jimp\core\dist\utils\image-bitmap.js:187:15)
at Jimp.parseBitmap (F:\WORKSPACE\image\node_modules\@jimp\core\dist\index.js:431:32)
at F:\WORKSPACE\image\node_modules\@jimp\core\dist\index.js:373:15
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:75:3)
```
I will provide other information if needed. the fnt file I used cannot be shared since it's generated out of a paid font.
Contributor guide
Assessment
This issue has not been assessed yet.