openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #04137
[Bug 472845] Re: wrong metric for Chinese font in OpenJDK applications
This bug was fixed in the package openjdk-6 - 6b20~pre1-1ubuntu1
---------------
openjdk-6 (6b20~pre1-1ubuntu1) maverick; urgency=low
* Include docs in the -doc package. LP: #600834.
* Update from the IcedTea6 trunk.
- Plugin and netx fixes.
- Don't link the plugin against the libxul libraries. Closes: #576361.
- More plugin cpu usage fixes. Closes: #584335, #587049.
- Plugin: fixes AppletContext.getApplets().
* Fix Vcs-Bzr location. Closes: #530883.
* Search for unversioned llvm-config tool.
* Don't set XFILESEARCHPATH and NLSPATH on startup. LP: #586641.
* Fix chinese font metrics and prefer using 'WenQuanYi Micro Hei' font.
LP: #472845.
* Strip libjvm.so with --strip-debug instead of --strip-unneeded.
LP: #574997.
-- Matthias Klose <doko@xxxxxxxxxx> Thu, 15 Jul 2010 12:40:10 +0200
** Changed in: openjdk-6 (Ubuntu Maverick)
Status: In Progress => Fix Released
--
wrong metric for Chinese font in OpenJDK applications
https://bugs.launchpad.net/bugs/472845
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
Status in “openjdk-6” package in Ubuntu: Fix Released
Status in “openjdk-6” source package in Lucid: Fix Committed
Status in “openjdk-6” source package in Maverick: Fix Released
Status in “openjdk-6” source package in Jaunty: New
Status in “openjdk-6” source package in Karmic: New
Bug description:
OpenJDK does not display Chinese (or CJK) characters correctly. It appears that all Han glyphs were displayed using wrong metric, and is only half to 1/3 of the actual EM width.
A screenshot is attached to illustrate the problem. To reproduce, select "OpenJDK Java 6 policy Tool" from the setting sub-menu, then select menu File\Open and navigate into a folder with Chinese name.
Notice that the Chinese folder name "中文目录" in the top file name box is only half-width, but the Chinese subfolder names in the left panel are fine.
This was also reported previously in Ubuntu Chinese forum (in Chinese), see http://forum.ubuntu.org.cn/viewtopic.php?f=8&t=221482
Creating a link in /usr/lib/jvm/java-6-openjdk/jre/lib/fonts/fallback folder does not solve the problem. Also, OpenJDK does not follow the fontconfig settings.
Update: as pointed out by Man Yuan in Comment#4, the font paths for wqy-zenhei in fontconfig.propertie sneeds to be updated as well. The font file suffix has been changed to ttc after the upgrade to 0.8.34 last year.
References