[Bug 510016] New: asian fonts display as box in java 1.6 / opensuse
http://bugzilla.novell.com/show_bug.cgi?id=510016 Summary: asian fonts display as box in java 1.6 / opensuse Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: ailin.nemui@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.10) Gecko/2009042700 SUSE/3.0.10-3.1 Firefox/3.0.10 The openSUSE does not configure the Java font settings correctly, which results in applications like Netbeans etc. to have empty boxes instead of asian characters. I think the fix would be to have SuSEconfig/fonts-config to also configure Java 1.6 and not only 1.4 and 1.5? Reproducible: Always Steps to Reproduce: 1. Install java-1_6_0-sun 2. Use chinese locale 3. Start java application Actual Results: Characters display as empty boxes Expected Results: Chinese characters are displayed -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=510016
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c1
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=510016
User ailin.nemui@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c2
Ailin Nemui
http://bugzilla.novell.com/show_bug.cgi?id=510016
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c3
Michal Vyskocil
I have not installed sazami fonts, there are japanese fonts.
I installed:
rpm -q -f /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/fontconfig.SuSE.properties java-1_6_0-sun-1.6.0.u13-0.1.1
the chinese fonts it tries to use are apparently: grep fonts.chinese /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/fontconfig.SuSE.properties allfonts.chinese-gb18030=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gb18030-0 allfonts.chinese-gbk=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gbk-0 allfonts.chinese-gb2312=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gb2312.1980-0 allfonts.chinese-big5=-founder-MingTiB-medium-r-normal--*-%d-*-*-*-*-big5-0 allfonts.chinese-iso10646=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-iso10646-1
I'm not sure if I'm missing any font pack, but if I were, that should be handled by dependencies?
Well, Chinese fonts cannot be Requires of java, because majority of users don't need them. But I suppose that there's something like if this locale, install this package. I'll try to investigate it.
Your command does not output anything useful: strace -f -s 4096 -etrace=open netbeans 2>&1 | grep ttf ~ [pid 12968] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/fonts/LucidaSansRegular.ttf", O_RDONLY|O_LARGEFILE) = 48 [pid 12968] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/fonts/LucidaTypewriterRegular.ttf", O_RDONLY|O_LARGEFILE) = 49 [pid 12968] open("/usr/share/fonts/truetype/uming.ttf", O_RDONLY|O_LARGEFILE) = 50 [pid 12968] open("/usr/share/fonts/truetype/uming.ttf", O_RDONLY) = 54
However, I just copied the fontconfig.SuSE.properties from /usr/lib/jvm/java-1.5.0-sun-1.5.0/jre/lib/fontconfig.SuSE.properties with these settings: allfonts.chinese-gb18030=-*-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-*-*-gb18030-0 allfonts.chinese-gbk=-*-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-*-*-gbk-0 allfonts.chinese-gb2312=-*-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-*-*-gb2312.1980-0 allfonts.chinese-big5=-*-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-*-*-big5-0 allfonts.chinese-iso10646=-*-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-*-*-iso10646-1
and that fixes the problem...
the 1.5.0 fontconfig is 'generated by /usr/sbin/fonts-config (called by "SuSEconfig --module fonts").'
It seems that this script doesn't have a support for Java 1.6. But as we try to avoid SUSEConfig, it would be better to include this configuration into Sun Java package. So I'll rather merge the 1.5.0 and 1.6.0 fontconfig. As there's planned update of Sun Java 1.6.0, this will be released together.
I suspect my system does not have the -founder-SongTi-*/-founder-MingTi-* fonts, but I have all the chinese font packages installed.
Yes, the Chinse fonts are in ttf-arphic-* packages - I'm I right?
Using japanese fonts is not recommended as their characters differ in appearance from the chinese ones, and do not cover the whole chinese character range.
Yes, that's true, sorry for that. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=510016
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c4
--- Comment #4 from Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=510016
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c5
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=510016
User ailin.nemui@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c6
Ailin Nemui
http://bugzilla.novell.com/show_bug.cgi?id=510016
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c7
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=510016
User swamp@suse.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c8
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=510016
User swamp@suse.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=510016#c9
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com