[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian java japanese input method and display problem



Takashi Okamoto wrote:
Hi David,

I have a same problem because I'm Japanese:) I resolved this problem by
following steps. Would you try it?

(1)install ttf-sazamani-mincho and ttf-sazanami-gothic (maybe you can
   use kochi-subst but I used sazanami).
export LC_ALL=C;aptitude
/sazanami
+
g
enter

(2)run xfontsel and ensure they are configured for X11.
I didn't do this because the above aptitude setup the fonts correctly here.

(3)copy fontconfig.Redhat.8.0.properties.src to fontconfig.properties
   in /usr/lib/j2sdk1.5-sun/jre/lib.
I noticed fontconfig.properties did not exist on my Debian unstable version linux.

I simply did

cd /usr/lib/j2sdk1.5-sun/jre/lib
cp fontconfig.RedHat.8.0.properties.src fontconfig.properties
I removed the setFont for the fontmenu from Font2DTest.java. javac *.java; java Font2DTest...The default Dialog font did not display the sazanami font name correctly. I tried forcing it to Dialog for the font menu and it still did not display the sazanami font names correctly.
fontMenu.setFont( new Font( "Dialog", Font.PLAIN, 40 ));

I discovered font.properties existed.
mv font.properties font.properties.original
cp fontconfig.properties font.properties

The only thing that works is 	
fontMenu.setFont( new Font( "GT2000-01", Font.PLAIN, 40 ));
If I don't use it, the font sazanami font name doesn't display correctly in the font combo box menu gui component.

My conclusion: I still don't have the default Dialog fonts configured properly in font.properties or the fontconfig.properties.

(4)replace "-misc-kochi" to "-sazanami-". Then fontconfig.properties
   is describe as follows:
...
serif.plain.japanese-x0201=-sazanami-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0\201.1976-0
serif.plain.japanese-x0208=-sazanami-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0\208.1983-0
I did this also.

Thanks again for your help.



Reply to: