没人回答关于unicode渲染的php imagettftext问题

时间:2014-12-03 02:41:08

标签: php unicode fonts rendering imagettftext

我有一个html表单文本输入和ph​​p脚本,使用imagettftext()将该sinhala语言文本转换为图像文件。但有些字符没有正确呈现..
我使用了相同的unicode字体...

这是我的PHP脚本;

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

please see this link to see the issue

任何人都可以帮助我。 。! 提前致谢 ! :)

1 个答案:

答案 0 :(得分:3)

GD不支持复杂文本渲染(适用于阿拉伯语,印度语等)。如果需要,您必须使用单独的库,例如Pango(example)。