Installation
System Dependencies
macOS
# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install system dependencies
brew install cairo pango pygobject3 pkg-config fontconfig
Linux (Ubuntu/Debian)
sudo apt-get update
sudo apt-get install -y \
python3-gi \
python3-gi-cairo \
gir1.2-gtk-3.0 \
libcairo2-dev \
pkg-config \
python3-dev \
libgirepository1.0-dev
Windows
Windows support is currently experimental. We recommend using WSL2 with Ubuntu for the best experience.
Python Package Installation
-
Clone the repository:
-
Create and activate a virtual environment (recommended):
-
Install the package:
Font Installation
Installing Arabic Fonts
- Download the desired Arabic fonts (e.g., DecoType Thuluth)
- Double-click the font file to open Font Book (macOS)
- Click "Install Font"
Or manually:
- macOS: Copy fonts to ~/Library/Fonts/
or /Library/Fonts/
- Linux: Copy fonts to ~/.local/share/fonts/
or /usr/local/share/fonts/
- Windows: Copy fonts to C:\Windows\Fonts\
Verify font installation: