Internationalisation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Prabahar

Internationalisation

Post by Prabahar » Thu Apr 10, 2003 2:35 am

Can any one help me to display Japanese double byte characters in side the chart for titles and legends

Thanks in advance,
Prabahar

nsequeira
Posts: 10
Joined: Fri Apr 11, 2003 9:20 pm

Re: Internationalisation

Post by nsequeira » Fri Apr 11, 2003 9:27 pm

Try changing the font for the text to one which contains the extended character set you need. For the legend, use the setTitleFont(..) and setItemFont(..) methods. For the title, instantiate a TextTitle object with the font you wish to use, then set use the setTitle(..) method on the chart.

For Windows platforms, the Japanese character set might exist in the "MS Gothic" font. This worked for me. I don't know about other platforms.

Good luck.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Apr 11, 2003 10:41 pm

That's correct, you just need to make sure the font you are using supports the characters you are trying to display.

Regards,

Dave Gilbert

Locked