I am using html2canvas
to take an image of a div, the content is from the same page, same domain, but it shows the Arabic letters disconnected, it seems that h
I found the answer eventually, three steps are needed:
You need to make sure that your html2convas js file is supporting right to left languages like Persian or Arabic or Hebrew, yeah you can't beleive that there are two different files, maybe one is older and the other has been updated, so for instance if you use https://files.codepedia.info/files/uploads/iScripts/html2canvas.js it won't work fine for right to left languages while https://github.com/niklasvh/html2canvas/releases/download/0.4.1/html2canvas.js works perfectly.
Now that you have chosen true version of html2canvas.js
,you need to use text-align: right;
for your elements.(NB: Not all elements need it, you probably just need to set it for the parent of elements).
You probably will need to add at the head of your html file.
Now everything will work like a charm! Thanks to answers that lead me to the most complete answer.