I Want to write some Persian or Arabic text on an image. I used the Intervention Image package for doing that, but the text was generated in reverse. How can I have the text placed in the correct (right to left) direction?
$rarticle = Article::first();
$test = storage_path($rarticle->image);
$image = Image::make($test);
$image->text($rarticle->title, 120, 100, function($font) {
$font->file(base_path('/admin-theme/assets/fonts/yekane.ttf'));
$font->size(40);
$font->color('#4285F4');
$font->align('center');
$font->valign('bottom');
$font->angle(0);
});
$image->save(storage_path($rarticle->image));