no one answered php imagettftext issue about unicode rendering

梦想与她 提交于 2019-12-13 22:36:34

问题


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:


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



来源:https://stackoverflow.com/questions/27262741/no-one-answered-php-imagettftext-issue-about-unicode-rendering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!