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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With