Hi, just want to find out, how can I display double-character encoding characters in the Chart(say, Chinese, Korean..Japanese..etc)
currently what I got is just some messy code, if I change to use something like "string chartTitle="\uD0A1";" it doesn't work either , what I see is only a square instead of the right characters..
thanks for reply
double character
Re: double character
The thing you need to watch for is that the font you use actually has the symbols you are using. I have Arial Unicode MS on my system, the font definition file is 27MB because it supports virtually all the Unicode characters. Most other fonts will only support a subset.
Regards,
DG.
Regards,
DG.
Re: double character
Hi, I've read your documentation but still couldn't figure out how to specify the right font, I am using a Chinese Windows 2000, so I think the default font set should have all the things we need, and if not, how can I set the font? by name or some other parameters? what's the valid name for setting the font variable? can you give me some clues?
thanks
thanks
Re: double character
The chart keeps a list of titles to display. If you want to create your own list of titles from scratch, you can do something like this:
ArrayList titles = new ArrayList();
TextTitle subtitle = new TextTitle(title, new Font("SansSerif", Font.BOLD, 12));
titles.add(subtitle);
chart.setTitles(titles);
When you create a TextTitle, you pass in a java.awt.Font. The above example uses a Java logical font name ("SansSerif", guaranteed to be available on all Java implementations) but you can use specific names if you want to (like "Arial" or "Arial Unicode MS").
Regards,
DG.
ArrayList titles = new ArrayList();
TextTitle subtitle = new TextTitle(title, new Font("SansSerif", Font.BOLD, 12));
titles.add(subtitle);
chart.setTitles(titles);
When you create a TextTitle, you pass in a java.awt.Font. The above example uses a Java logical font name ("SansSerif", guaranteed to be available on all Java implementations) but you can use specific names if you want to (like "Arial" or "Arial Unicode MS").
Regards,
DG.