没有人回答有关unicode渲染的php imagettftext问题 [英] no one answered php imagettftext issue about unicode rendering

查看:92
本文介绍了没有人回答有关unicode渲染的php imagettftext问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用html表单文本输入和ph​​p脚本,以使用imagettftext()将正弦语言文本转换为图像文件.但是某些字符无法正确呈现..
我使用了非常相同的unicode字体...

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

这是我的php脚本;

this is my php script;

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

请查看此链接以查看问题

谁能帮助我. .! 提前致谢 ! :)

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

推荐答案

GD不支持复杂文本呈现(对于阿拉伯语,印度语等).如果需要此功能,则必须使用单独的库,例如Pango(例如).

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

这篇关于没有人回答有关unicode渲染的php imagettftext问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆