Pango rtl direction
Posted: 2017-07-18T02:03:05-07:00
How can I set pango direction to right-to-left (rtl)?
According to pango-view manual, pango has -rtl option but there is not any pango:rtl in pango's list of defines.
I'm using imagemagick 6.8.9 with pango in PHP 7.0 on Ubuntu 16.04, and I want to turn off auto-dir and set direction manually like this:
But it doesn't work, can anyone help?
According to pango-view manual, pango has -rtl option but there is not any pango:rtl in pango's list of defines.
I'm using imagemagick 6.8.9 with pango in PHP 7.0 on Ubuntu 16.04, and I want to turn off auto-dir and set direction manually like this:
Code: Select all
$img = new Imagick();
$img->setOption("pango:auto-dir", false);
$img->setOption("pango:rtl", true);
$img->newPseudoImage(0, 0, "pango:<span font_desc='Arial 12'>Hello World!</span>");
$img->setImageFormat('png');