PHP: have GD able to print Japanese words
In a PHP module, We have a few graphics made by GD that need to have some Japanese words in it. These words are entered manually from a form by Japanese users, and that text should be displayed within the graphics.
PHP has the mbstring
module and can display and handle Japanese words via echo with no problem.
However gd
displays ???
instead.
Checking gd_info()
, the following configuration is set
JIS-mapped Japanese Font Support: Disabled
This could be the problem. But I didn't find how to Enable
it.开发者_运维问答
Using PHP 5.3.3.
You neet to re-compile php with --enable-gd-jis-conv
http://www.webhostingtalk.com/showthread.php?t=694939
精彩评论