Set Chinese font

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

Set Chinese font

Post by Chen.Q. » Tue Oct 22, 2002 5:50 am

How can i set a chinese font in legend?

Zhu YC

Re: Set Chinese font

Post by Zhu YC » Tue Oct 22, 2002 6:41 am

??
Difficult?
In my simplified Chinese Win98, set Chinese font just as set any other English font.

Dave Gilbert

Re: Set Chinese font

Post by Dave Gilbert » Tue Oct 22, 2002 8:53 am

You can use any Unicode characters you want to, provided that the font you use actually has those characters defined. A while back I downloaded a font from the Microsoft web site (Arial Unicode MS) which included just about all the Unicode characters - the font file is about 25 meg!

Here's a link that you might find helpful:

http://www.ccss.de/slovo/unifonts.htm

Regards,

DG.

Chen.Q.

Re: Set Chinese font

Post by Chen.Q. » Tue Oct 22, 2002 2:02 pm

I can show Chinese in legend in Window2000, but not in linux?

I can not find a method or property to set character for legend, please tell

me how can i resolve the problem.

Dave Gilbert

Re: Set Chinese font

Post by Dave Gilbert » Tue Oct 22, 2002 4:49 pm

Please try the setItemFont(...) method in the StandardLegend class.

Regards,

DG.

Locked