I want to generate and serve an image of text.
At the moment I’m using text2png
:
text2png('this string', {font: '14px Courier', bgColor: 'white'})
I’ve got it working for simple strings.
However, text2png
doesn’t seem to be able to do unicode/emoji at least by default on glitch:
It’s turning into and chinese characters, e.g. 中文, into .
How can I render strings containing these kinds of characters into images?
text2png
was working perfectly in other respects.
Also, locally on my MacBook it rendered the chinese characters but it still didn’t do the emoji correctly.