如何在图像中写入非英语字符,例如阿拉伯或波斯字符? [英] How can I write Non English Characters such as Arabic or Persian characters into an image?

查看:57
本文介绍了如何在图像中写入非英语字符,例如阿拉伯或波斯字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用PHP GD库将阿拉伯字符或波斯字符写入图像?

How can I write Arabic or Persian characters to an image using PHP GD library?

即احسان"

推荐答案

我写了一个基于库的composer程序包,我不记得这个名字了.我修改了该库并修复了其中的一些错误.

I had write a composer package based on a library, I don't remember the name. I modified the library and fixed some bugs it had.

您可以在此处找到源.并且您还可以通过运行以下命令在composer中进行安装:

You can find the source here. and you can also install it with composer by running:

composer require quince/persian-gd

  • 波斯语字符没有问题
  • 可自定义
  • 该字符串不会溢出图像画布
  • 请对其进行测试,并发送错误报告,建议和...

    Please test it, and send bug reports, suggestion and ...

    谢谢

    这篇关于如何在图像中写入非英语字符,例如阿拉伯或波斯字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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