装好wkhtmltopdf 中文显示空白或者乱码方框
网路上说一般是中文支持没有安装
说添加yum源后安装以下两个包:
fonts-chinese.noarch
fonts-ISO8859-2-75dpi.noarch
下载好安装,
[root@alpha-openl soft]# rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm
warning: fonts-chinese-3.02-12.el5.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
error: Failed dependencies:
/usr/sbin/chkfontpath is needed by fonts-chinese-3.02-12.el5.noarch
不行
突然觉得,英文可以,中文不行,
可能还是中文字体原因
于是找了windows里的宋体
上传到服务器/usr/share/fonts/里
/usr/share/fonts/chinese/TrueType/simsun.ttc
测试果然解决了!
原创文章,转载请注明来自狂奔的蜗牛的博客[http://www.host900.com/]