First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 56444
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Georgi Georgiev <chutz@gg3.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
sun-jdk-1.5.0.08-r1.patch sun-jdk-1.5.0.08-r1.patch patch MATSUU Takuto 2006-11-10 21:49 0000 319 bytes Details | Diff
fontconfig.Gentoo.properties files/fontconfig.Gentoo.properties text/plain MATSUU Takuto 2006-11-10 21:50 0000 10.68 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 56444 depends on: Show dependency tree
Bug 56444 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-07-08 05:03 0000
Problem:

Java applications do not display Japanese fonts if using a sun-jdk package. I haven't checked with other java environments. The problem is that the default font configuration for Japanese, included in the distribution of the sun-jdk package is absolutely incorrect on gentoo. The ebuilds should take care of the problem, possibly by supplying a custom configuration file.

For example, the 1.4.x series of the java-package look in ${JAVA_HOME}/jre/lib for the font configuration files. After looking at a few strace outputs, it seems that the best bet would be to install a gentoo-specific font.properties.ja file (which is the last file that java resorts to, if using a Japanese locale).

I am not very fluent in font configurations, but I know that the current one (referring to "watanabe" fonts) is not correct. Furthermore, it is possible to use ttf fonts directly, but their path has to be specified explicitly. I guess that a useflag (cjk?) and a dependency on kochi-substitute (cjk ? kochi-substitute) may be necessary. It seems that the RedHat8 file is the best bet to use as a template for the gentoo installation.

Another note of warning is that the 1.5.x series of the sun-jdk package have a different configuration file, which is however, much nicer to manage. Since sun-jdk does not recognize Gentoo, and does not have a proper configuration file, installing a ${JAVA_HOME}/jre/lib/fontconfig.properties file (possibly by using RedHat's file as a template and substituting the paths) is the way to go.

I am not submitting patches, because I am not sure that my system is properly configured in respect to fonts. I have installed fonts myself in more or less arbitrary locations (TrueType, TTF, truetype), and I am using old versions of the kochi fonts, so I am not sure that a patch that I submit would work on any other gentoo system. And as a last point, I only read Japanese, so I cannot help with the other cjk fonts.

------- Comment #1 From Jackey Yang ("timeout" in forum) 2004-07-09 19:35:47 0000 -------
if you installed fonts yourself(i did so), you have to change 
/opt/sun-jdk-1.4.2.04/jre/lib/font.properties.ja
Here is what i did:
i modified font.properties and saved as font.properties.zh_CN.

I used Microsoft Simpilified Chinese TTF

------- Comment #2 From Karl Trygve Kalleberg (RETIRED) 2004-12-23 02:19:01 0000 -------
We don't have any non-latin developers at the present time, so we're a bit
uncertain as to what is the best way to attack this. 

If anybody in the cjk herd can come up with a solution, or at least provide us
with some good guidelines, assistance and testing, we should be able resolve
this bug.

Reassigning to you guys so you may add your thoughts on the matter. 

------- Comment #3 From MATSUU Takuto 2006-11-10 21:49:17 0000 -------
Created an attachment (id=101647) [details]
sun-jdk-1.5.0.08-r1.patch

------- Comment #4 From MATSUU Takuto 2006-11-10 21:50:12 0000 -------
Created an attachment (id=101649) [details]
files/fontconfig.Gentoo.properties

------- Comment #5 From MATSUU Takuto 2006-11-10 21:54:15 0000 -------
java herds: please add the fontconfig.Gentoo.properties for cjk font support.

this is based on fontconfig.RedHat.9.0.properties.src.

cf.
 http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html

------- Comment #6 From Vlastimil Babka (Caster) 2006-11-22 15:29:57 0000 -------
Fixed in sun-jdk-1.5.0.09-r1, thanks for the patch/config. If anyone wants it
for sun-jdk-1.4 too, please reopen.

------- Comment #7 From Vlastimil Babka (Caster) 2006-11-22 15:34:44 0000 -------
Applied also to sun-jdk-1.5.0.09-r1.

------- Comment #8 From Vlastimil Babka (Caster) 2006-11-22 15:35:09 0000 -------
Meant sun-jre-bin-1.5.0.09-r1. Sorry for the bugspam.

First Last Prev Next    No search results available      Search page      Enter new bug