| #!/bin/bash
|
|
|
|
|
|
|
| set -e
|
|
|
| echo "🔤 Setting up Arabic fonts for perfect RTL support..."
|
|
|
|
|
| FONTS_DIR="/tmp/fonts/truetype/arabic-enhanced"
|
| mkdir -p "$FONTS_DIR"
|
|
|
|
|
| echo "📥 Installing Amiri font..."
|
| cd /tmp
|
| wget -q "https://github.com/aliftype/amiri/releases/download/0.117/Amiri-0.117.zip" -O amiri.zip
|
| unzip -q amiri.zip
|
| cp Amiri-0.117/*.ttf "$FONTS_DIR/"
|
| rm -rf amiri.zip Amiri-0.117/
|
|
|
|
|
| echo "📥 Installing Scheherazade New font..."
|
| wget -q "https://github.com/silnrsi/font-scheherazade/releases/download/v3.300/ScheherazadeNew-3.300.zip" -O scheherazade.zip
|
| unzip -q scheherazade.zip
|
| cp ScheherazadeNew-3.300/*.ttf "$FONTS_DIR/"
|
| rm -rf scheherazade.zip ScheherazadeNew-3.300/
|
|
|
|
|
| chmod 644 "$FONTS_DIR"/*.ttf
|
|
|
|
|
| echo "🔄 Updating font cache..."
|
| fc-cache -fv
|
|
|
|
|
| echo "✅ Verifying Arabic fonts installation..."
|
| fc-list | grep -i "amiri\|scheherazade\|noto.*arabic" | head -10
|
|
|
| echo "🎯 Arabic fonts setup completed successfully!"
|
| echo "Available Arabic fonts:"
|
| fc-list | grep -i "arabic\|amiri\|scheherazade" | cut -d: -f2 | sort | uniq |