PHP GD无法正确呈现unicode字体 [英] PHP GD not rendering unicode fonts properly

查看:67
本文介绍了PHP GD无法正确呈现unicode字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在用PHP GD库渲染unicode字形(语言:马拉雅拉姆语,泰米尔语和印地语)时遇到问题.这与GD库的渲染引擎有关吗?有任何解决方法吗?

I am having problems in rendering unicode glyphs ( language : Malayalam, Tamil and Hindi) with PHP GD library. Is this something related to the rendering engine of GD library? Any workarounds available ?

推荐答案

首先请确保您的字体包含所需的字形(诸如Arial之类的系统字体).然后,如果需要,请确保使用utf8_decode()将参数转换为unicode.

First make sure your fonts contain the desired glyphs (system fonts such as Arial should). Then make sure you convert your parameters to unicode using utf8_decode() if neccessary.

这篇关于PHP GD无法正确呈现unicode字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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