writing text on image with npm node-canvas in custom language
问题 I am trying to write on image with hindi language. I am using node-canvas library. There is some problem with my output. Can someone help me ? const { createCanvas, loadImage, registerFont} = require('canvas') const canvas = createCanvas(400, 400) const ctx = canvas.getContext('2d') var str= "यह. मिसिसिपी है"; console.log(str); loadImage('missisippi.jpg').then((image) => { console.log(image); ctx.drawImage(image, 0 , 0, 400, 400); ctx.fillText(str,100,40); var body = canvas.toDataURL(),