unjs / jimp-compact

✏️ Lightweight version of Jimp -- An image processing library written entirely in JavaScript for Node.js
111 stars 5 forks source link

Missing bundled fonts #40

Closed SimenB closed 3 years ago

SimenB commented 3 years ago
// file.js
const {existsSync} = require('fs')
const Jimp = require('jimp');
const JimpCompact = require('jimp-compact');

console.log(existsSync(Jimp.FONT_SANS_16_BLACK))
console.log(existsSync(JimpCompact.FONT_SANS_16_BLACK))

prints

$ node file.js
true
false

specifically, this fails for Jimp.loadFont

pi0 commented 3 years ago

Thanks for reporting! Should be fixed in 0.16.1-1.

SimenB commented 3 years ago

Works great, thanks!