Im using GraphicsMagick for node and trying to drawText on image for "Urdu/Arabic Language" this text "السلام عليكم", text is being drawn on output image but it is being drawn "Left to Right" while it must be "Right to Left" as Arabic/Urdu are "Right to Left" languages.
gm("/file.png")
.fill('#FF0066')
.drawText(100, -150, "السلام عليكم", 'Center')
.font("/alvi_Nastaleeq.ttf")
.fontSize('38px')
.encoding('Unicode')
Output Image:
If Im trying using reverse urdu "مكيلع مالسلا" string even then text isn't being drawn correctly.
What m i doing wrong? How can I fix it?
Thanks,