标签: php unicode fonts rendering imagettftext
我有一个html表单文本输入和php脚本,使用imagettftext()将该sinhala语言文本转换为图像文件。但有些字符没有正确呈现.. 我使用了相同的unicode字体...
这是我的PHP脚本;
imagefttext($im, 11, 0, 5, 5, $black, 'iskolapotha.ttf', $POST['testinginput']);
please see this link to see the issue
答案 0 :(得分:3)
GD不支持复杂文本渲染(适用于阿拉伯语,印度语等)。如果需要,您必须使用单独的库,例如Pango(example)。