SimpleImage
SimpleImage copied to clipboard
Support for Arabic text
When used to write in "Arabic" it is showing white spaces only. I checked for online solutions and people were talking about something like this (including additional library):
// init:
include('php-gd-farsi-master/FarsiGD.php');
$gd = new FarsiGD();
....
// then convert your text:
$tx = $gd->persianText($str, 'fa', 'normal');
How can we do the same in SimpleImage ?
Firstly, you must use a font with support of Arabic. I use DejaVu as universal font for all languages. But I still have a problem: letters not connecting each other and showing separately and left-to-right (not right-to-left):