JFreeChart 한글 깨짐 현상 해결방법


JFreeChart 한글 깨짐 현상 해결방법

//chart 한글 처리 //title chart.getTitle().setFont(new Font("HYGSRB", Font.BOLD, 20)); //범례 chart.getLegend().setItemFont(new Font("HYGSRB", Font.BOLD, 10)); CategoryPlot plot = (CategoryPlot)chart.getPlot(); Font labelFont = null; //x축 제목 한글처리 labelFont = plot.getDomainAxis().getLabelFont(); plot.getDomainAxis().setLabelFont(new Font("HYGSRB", labelFont.getStyle(), labelFont.getSize())); //y축 제목 한글처리 labelFont = plot.getRangeAxis().getLabelFont(); plot.getRangeAxis().setLabelFont(new Font("HYGSRB",...



원문링크 : JFreeChart 한글 깨짐 현상 해결방법