使用 PHP GD 在图像中编写印地语

问题描述

我正在尝试使用 PHP GD 在图像中写入印地语 Unicode 文本。但字符显示不正确。

$fontFile = "fonts/NotoSansDevanagariui-Regular.ttf";
$text = "मरुधर बुलिटेन - हिन्दी के जटिल शब्द - दैनिक हरिभूमि";
header('Content-type: image/jpeg'); 
$jpg_image = imagecreatefromjpeg('profile-image.jpg'); 
$white = imagecolorallocate($jpg_image,255,255); 
imagettftext($jpg_image,25,50,$white,$fontFile,$text); 
imagejpeg($jpg_image); 
imagedestroy($jpg_image); 

这是输出

Hindi Unicode Output in PHP GD

你能帮我解决这个问题吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)