问题
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