Measured notes on Arabic text handling, and the upstream fixes that came out of them. GitHub
The most-copied recipe for rendering Arabic in Python reverses your text on matplotlib 3.11, with no error. What happened when I filed it against Pillow and matplotlib.