Printing Bidi text to an image
I have some code in Python using PIL, that will print UTF-8 characters to an image. I've noticed that for joining Bidi scripts like Arabic, the same code fails to connect characters correctly (the initial forms are only chosen, medial and final forms aren't utilized) Can anyone recommend a method or technique for solving this particular issue? If you want to keep using PIL, use pyarabicshaping with pybidi or you might want to consider switching to pangocairo which uses HarfBuzz for text shaping. What I did is the following: Python + Wand (Python Lib) +arabic_reshaper(Python Lib) +bidi