no one answered php imagettftext issue about unico

2019-09-24 08:26发布

I am having a html form text input and php script to convert that sinhala language text to an image file using imagettftext(). but some characters are not rendered properly..
I have used the very same unicode font...

this is my php script;

imagefttext($im, 11, 0, 5, 5, $black, 'iskolapotha.ttf', $POST['testinginput']);

please see this link to see the issue

can anyone help me. .! thanks in advance ! :)

1条回答
在下西门庆
2楼-- · 2019-09-24 09:04

GD does not support Complex Text Rendering (for Arabic, Indic etc). If you need this, you will have to use a separate library, such as Pango (example).

查看更多
登录 后发表回答