Bug 582455

Summary: Java fontconfig needs to be updated for Japanese
Product: [Fedora] Fedora Reporter: fujiwara <tfujiwar>
Component: java-1.6.0-openjdkAssignee: jiri vanek <jvanek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dbhole, fonts-bugs, i18n-bugs, jpechane, lkundrak, mjw, rruss
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: java-1.6.0-openjdk-1.6.0.0-51.1.9.5.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-11 08:19:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 538278    

Description fujiwara 2010-04-15 02:37:44 UTC
Currently Japanese default font is VL Gothic and Japanese chars are not shown with Java in Fedora F13/rawhide.

% fc-match monospace:lang=ja-jp
VL-Gothic-Regular.ttf: "VL Gothic" "regular"

/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/fontconfig.Fedora.[bfc|properties.src] needs to be updated.

The following is the fixing script.

$ cat java-font.sh 
#!/bin/sh

FONTCONFIG_FILE=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/fontconfig.Fedora.properties.src

sed -i -e 's/Sazanami Gothic/VL Gothic/g' \
       -e 's/Sazanami Mincho/VL Gothic/g' \
       -e '/filename.Sazanami_Gothic=/a\
filename.VL_Gothic=/usr/share/fonts/vlgothic/VL-Gothic-Regular.ttf' \
       $FONTCONFIG_FILE

I also checked RHEL6 and it seems fontconfig.RedHat.properties.[bfc|properties.src] doesn't exist.

fontconfig.RedHat.properties.[bfc|properties.src] could be copy of fontconfig.Fedora.[bfc|properties.src] with above my fix.

It would be good to fix Fedora rawhide/13 and RHEL 6.

Comment 1 fujiwara 2010-04-15 06:33:27 UTC
my typo:

s/fontconfig.RedHat.properties.[bfc|properties.src]/fontconfig.RedHat.[bfc|properties.src]/

Probably it would be good the current fontconfig.Fedora.* might be moved to fontconfig.RedHat.5.0.* but not 6.0.

Comment 2 Bug Zapper 2010-07-30 11:20:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Nicolas Mailhot 2010-08-10 08:53:51 UTC
This is only fixing the symptom.

openjdk should provide access to all the fonts registered in fontconfig by default and not wait for someone to declare them in property files. Those files are a leftover from SUN's “let's reinvent our own private font stack” effort, they don't belong in a properly integrated floss jdk, and they are hampering the use of java on Linux for anything that needs to render text.

Comment 6 jiri vanek 2010-11-11 08:19:10 UTC
added icedtea patch for java's fontconfig files

Comment 7 Fedora Update System 2011-02-01 15:38:46 UTC
java-1.6.0-openjdk-1.6.0.0-51.1.9.5.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-51.1.9.5.fc14

Comment 8 Fedora Update System 2011-02-01 15:40:52 UTC
java-1.6.0-openjdk-1.6.0.0-49.1.8.5.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-49.1.8.5.fc13

Comment 9 Fedora Update System 2011-02-02 19:34:44 UTC
java-1.6.0-openjdk-1.6.0.0-49.1.8.5.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2011-02-02 19:37:32 UTC
java-1.6.0-openjdk-1.6.0.0-51.1.9.5.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.