Jfreechart Chinese Display as a block
Statsvn+statcvs are all used Jfreechart 1.0.13, the resulting chart has a problem with the Chinese display. Old version of jfreechart1.0.10 is good ~ Rub ~
Originally, from 1.0.14, added a Source\org\jfree\chart\standardcharttheme.java
Inside write dead font all use Tahoma, did not find this font, generated figure, Chinese becomes block.
Workaround:
Either install the Tahoma font on the machine, or modify the code to return the font.
Change the newly adopted Tahoma font to the original Sansserif
First place:
Source\org\jfree\chart\standardcharttheme.java
function public Standardcharttheme (String name, Boolean shadow) {in
Will
This.extralargefont = new Font ("Tahoma", Font.Bold, 20);
This.largefont = new Font ("Tahoma", Font.Bold, 14);
This.regularfont = new Font ("Tahoma", Font.plain, 12);
This.smallfont = new Font ("Tahoma", Font.plain, 10);
Switch
This.extralargefont = new Font ("Sansserif", Font.Bold, 20);
This.largefont = new Font ("Sansserif", Font.Bold, 14);
This.regularfont = new Font ("Sansserif", Font.plain, 12);
This.smallfont = new Font ("Sansserif", Font.plain, 10);
The second place: Source\org\jfree\chart\plot\crosshair.java also used in the Tahoma font, it is best to change it.
Jfreechart Chinese Display as garbled