SimpleImage icon indicating copy to clipboard operation
SimpleImage copied to clipboard

Support for Arabic text

Open Oah433 opened this issue 7 years ago • 1 comments

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 ?

Oah433 avatar Aug 26 '17 13:08 Oah433

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):

676

Brullworfel avatar Jan 07 '19 06:01 Brullworfel