When the image is saved and rendered out, my text starts from the bottom and end at top of the bounding box. How can I solve this? Here is the code:
$image->textBox($ascii, array(
'width' => 500,
'fontSize' => 24,
'alignHorizontal' => 'center',
'alignVertical' => 'center',
));
I am not using height as I do not want to auto scale the font/text. Also I am using a RTL font/language here. Is that the reason why it is behaving so? I have text which is supposed to be aligned RTL.
When the image is saved and rendered out, my text starts from the bottom and end at top of the bounding box. How can I solve this? Here is the code:
I am not using height as I do not want to auto scale the font/text. Also I am using a RTL font/language here. Is that the reason why it is behaving so? I have text which is supposed to be aligned RTL.