SuSe+JDK1.5+JfreeChart乱码问题

从Windows XP的字体目录拷贝了simsun.ttc文件到/jre/lib/fonts目录中,将其改名为simsun.ttf。

然后运行字体库生成mkfontscale,生成所需的字体库文件fonts.dir

运行/jre/lib/fonts# mkfontscale

cp fonts.scale fonts.dir

然后在jre/lib下找到对应系统的字体属性文件.properties.src,因为我的系统是SuSE,所以应该使用的文件为fontconfig.SuSE.properties.src。使用fonts.dir中合适的字体替换改文件中的字体。

我使用的是-misc-simsun-medium-r-normal–0-0-0-0-p-0-gb18030.2000-0



然后将文件保存为fontconfig.SuSE.properties文件。



这时候重新启动程序,大功告成!

你可能感兴趣的:(windows,jfreechart,XP,SuSE)