Answer the question
In order to leave comments, you need to log in
Why question marks when writing an image in JimpJS?
When saving an image, the Cyrillic text is converted to "question" marks, how can I fix this? https://github.com/oliver-moran/jimp
Jimp.read('./data/stats.jpg', (err, image) => {
if (err) throw err;
Jimp.loadFont(Jimp.FONT_SANS_64_WHITE).then(font => {
image.print(
font, 1, 1, {
text: 'Тест'
}, 500, 500
);
image
.quality(60)
.write('./data/stats/test.jpg')
});
});
Answer the question
In order to leave comments, you need to log in
The creation of the font https://github.com/libgdx/libgdx/wiki/Hiero helped. And its loading Jimp.loadFont('...')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question