JFreeChart lineChart title in Chinese overlap to each other

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
hypongcp
Posts: 1
Joined: Wed Mar 07, 2018 4:10 am
antibot: No, of course not.

JFreeChart lineChart title in Chinese overlap to each other

Post by hypongcp » Wed Mar 07, 2018 4:23 am

Image

I am using the following setting to generate the lineChart, but the Chinese title is overlap to each other.
That problem only happen on my prod (linux server) but local (MS PC). Any suggestion to solve this problem ?
Thanks.

private static Font FONT = new Font("Arial Unicode MS",Font.PLAIN, 16);
private static Font TITLEFONT = new Font("Arial Unicode MS",Font.PLAIN, 16);
...
StandardChartTheme chartTheme = new StandardChartTheme("CN");
chartTheme.setExtraLargeFont(TITLEFONT);
chartTheme.setRegularFont(FONT);
chartTheme.setLargeFont(FONT);
chartTheme.setSmallFont(FONT);

Locked