I am trying to write on image with multiple language. I am using npm package 'gm' .
gm(inputFilePath)
.font(fontFilePath) // .ttf format
.writeText(x,y,TextToBeWritten)
.write(outputFile , callBackFunction())
Here I want to write in Multiple languages. And there is no single font which includes all of them. How can I pass multiple fonts to writeText function ?
Let's say I want to write in Chinese , English , Russian , Japanese and Hindi . How can Pass something like
.font(font1.ttf , font2.ttf , font3.ttf)
.writeText(x , y , TextToBeWritten)
If I can't do this, then I will no other choice, but to merge multiple fonts. and generate single .ttf file.
I would like to do it if it's possible. If it's not possible with current version of 'gm', then I would like to contribute to 'gm'. If anyone can guide me, I might be able to pull it off.