Skip to content

Instantly share code, notes, and snippets.

View abdullahalsaidi16's full-sized avatar

Abdullah Alsaidi abdullahalsaidi16

View GitHub Profile
@amrza
amrza / run.py
Last active September 13, 2024 01:30
How to write RTL(Arabic/Persian) text on images in python.
# Tested on Python 3.6.1
# install: pip install --upgrade arabic-reshaper
import arabic_reshaper
# install: pip install python-bidi
from bidi.algorithm import get_display
# install: pip install Pillow
from PIL import ImageFont