Jfreechart 中文乱码问题的解决及zysong.ttf下载

[1]

http://www.google.com.hk/search?hl=en&source=hp&q=zysong.ttf&aq=f&oq=&aqi=

[2]

http://www.tot.name/html/26-33/6573.htm

http://blog.csdn.net/herrapfel/archive/2008/10/24/3136023.aspx

Jfreechart 中文乱码问题的解决及zysong.ttf下载 收藏

方法如下:
需要一个中文TrueType字库,zysong.ttf,貌似msyh.ttf(微软雅黑)不管用,我开始用雅黑字体不成功

1.确认%JavaHome%/jre/lib/fonts目录下存在zysong.ttf

2.在%JavaHome%/jre/lib/fonts目录下执行"ttmkfdir -o fonts.dir"命令,重新生成fonts.dir文件

3.确认/usr/share/fonts/zh_CN/TrueType目录存在,如果不存在则mkdir创建

4.确认/usr/share/fonts/zh_CN/TrueType目录下存在zysong.ttf

5.在%JavaHome%/jre/lib目录下,执行 cp fontconfig.RedHat.3.properties.src fontconfig.properties

6.重起resin,OK。

环境RedHat9,Resin3,Jdk1.6

附件zysong.ttf下载

[3]

[4]

posted @ 2011-04-16 14:40  陳聽溪  阅读(419)  评论(0)    收藏  举报