After I download Spark, it is running well, but I could not input Chinese characters, and the display of Chinese characters is not good(maybe font size too small). I have two questions:
-
Where to download Chinese font?
-
How to configure it?
I googled web, found some doc from sun. But they did not answer my questions.
I am using JDK 1.5. working on this for three days, but no progress.
Thanks for help.
DAVE
Hi centralb,
Thanks for your reply. I developed some Java swing applications before, but no requirement for Chinese input. So I do not have experience in supporting Chinese in Java swing application.
I can input Chinese into Eclipse editor on Windows XP sp2 (Chinese version). I am not sure whether Eclipse is a java swing application. No problem typing in Chinese into Windows Office and IE. But for Spark, it seems that the Chinese input method is not enabled. When focusing Spark chat input window, the Chinese input method dialog disappear.
I looked at the c:\windows\fonts directory. More than 10 chinese fonts are installed. The JRE under the Spark does not have Chinese fonts, but the system installed chinese fonts under c:\windows\fonts will be used. The JRE under the spark has “fontconfig.properties.src” file that configures Chinese fonts.
…
version=1
- Component Font Mappings
allfonts.chinese-ms936=SimSun
allfonts.chinese-gb18030=SimSun-18030
allfonts.chinese-hkscs=MingLiU_HKSCS
allfonts.devanagari=Mangal
allfonts.dingbats=Wingdings
allfonts.lucida=Lucida Sans Regular
allfonts.symbol=Symbol
allfonts.thai=Lucida Sans Regular
…
System: Windows XP sp2 (chinese version)
Thanks a lot for your help. It is very urgent for me to solve this problem. My boss becomes impatient.
Dave