Home  >  Article  >  Backend Development  >  将汉语输出到图片,需要在服务器安装在服务器安装中文字体么

将汉语输出到图片,需要在服务器安装在服务器安装中文字体么

WBOY
WBOYOriginal
2016-06-13 10:36:471019browse

将中文输出到图片,需要在服务器安装在服务器安装中文字体么?
怎么安装?安装到哪个位置呢?
据说还要对中文进行编码?这个编码是怎么搞的?求知道:)

------解决方案--------------------
array imagettftext ( resource image, float size, float angle, int x, int y, int color, string fontfile, string text )
fontfile 参数就是需要的目录

只要你的服务器支持,ttf、ttc 文件均可
------解决方案--------------------
需要。
------解决方案--------------------
嗯,应该要字体支持!
------解决方案--------------------
ttf
------解决方案--------------------
1.注意路径
2.有的字体不支持中文
------解决方案--------------------
你输出两个英文或者数字 正常的话 你就去换字体就对了.

探讨

引用:

1.注意路径
2.有的字体不支持中文

路径没问题, 没神马复杂的字,
就输出 "你好" 两个字,这么简单的事情,都不行:( 气死鸟;(
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn