Cannot display Chinese, Japanese, Korean characters if choosing font other than five LogicalFontName
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
System Version:
Description: Ubuntu 13.10
Release: 13.10
Java Version:
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
openjdk-7-jdk:
Installed: 7u51-2.
Candidate: 7u51-2.
Version table:
*** 7u51-2.
500 http://
500 http://
100 /var/lib/
7u25-
500 http://
Just using Intellij IDEA as an example, Just use following step to reproduce the problem.
1) I did a fresh installation of Ubuntu 13.10 64-bit Desktop, choose Simplified Chinese (简体中文) as system language;
2) install openjdk 7 by : sudo apt-get install openjdk-7-jdk
3) Download IntelliJ IDEA from http://
4) Create a new project, and create a new file with name either be Chinese, Japanese or Korean, as example, you can copy & paste the following strings to test it:
中文文件名
日本語のファイル名
한국어 파일 이름
5) During the input, you will notice the CJK characters a become a slim box, no character showed
6) After the file creation, the project explorer will display all the CJK characters as slim boxes. The screenshot is on the link
http://
7) You can go Settings -> Appearances -> to Override the default font by any one of {serif, sansserif, monospaced, dialog, dialoginput}, such as:
8) After that, the CJK characters can be shown correctly,
According to documentation, http://
The expected behavior should be that whatever the font I choose, if it doesn't provide the glyph for the character, it will try to search the sequence, and find the first available font to render the character. Apparently, the search is broken at some point, so only 'slim box' showed for CJK characters.
This is a bug exists for several years, affected both openjdk-6 and 7, and at least since Ubuntu 10.10.
Confirmed the same problem on NetBeans 7.4, this time, only editor font can be changed, so just create a new file, can copy the CJK characters to it, and change the font to something other than the five logical font, such as font 'Ubuntu'. The following screenshot shows the 'slim box' problem for CJK characters in NetBeans 7.4.
http:// tinypic. com/r/izchv4/ 8