Unix下web应用中jfreechart图片中乱码问题

hailong4688199 2010-11-26

请问下,Unix下web应用中jfreechart图片中乱码问题如何解决?该web应用在window上运行能正常显示中文。

                          CategoryPlot categoryplot = (CategoryPlot) chart.getPlot(); 
                         NumberAxis numberaxis = (NumberAxis) categoryplot.getRangeAxis();    
			 CategoryAxis domainAxis = categoryplot.getDomainAxis(); 
//			 domainAxis.setMaximumCategoryLabelLines(10);  //标题行数,每个字显示一行
//			domainAxis.setMaximumCategoryLabelWidthRatio(0.3f);  //每个标题宽度,控制为1个字的宽度     
			 TextTitle textTitle = chart.getTitle(); 
			 textTitle.setFont(new Font("黑体", Font.PLAIN, 20));     
			 domainAxis.setTickLabelFont(new Font("SansSerif", Font.PLAIN, 11));    
			 domainAxis.setLabelFont(new Font("宋体", Font.PLAIN, 12)); 
			 domainAxis.setCategoryLabelPositions(CategoryLabelPositions.DOWN_90);   
			 numberaxis.setTickLabelFont(new Font("SansSerif", Font.PLAIN, 12));    
			 numberaxis.setLabelFont(new Font("黑体", Font.PLAIN, 12));    
tjc 2010-11-26
new Font("黑体") 这些字体在unix里下是没有的吧?
Global site tag (gtag.js) - Google Analytics