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

Re: Debian java japanese input method and display problem



From: David Marceau <davidmarceau@sympatico.ca>
Subject: Re: Debian java japanese input method and display problem
Date: Sun, 19 Dec 2004 09:46:59 -0500
> QUESTION:  How does one programmatically check in a java application
> if a font fulfills the required japanese character encodings?

java.lang.Character.UnicodeBlock class is useful class to detect the
character kind.

> From what I noticed the default "Dialog" font does not display
>  "東風ゴシック" and "東風明朝" correctly in the font name list.

What does it mean? If you configure fontconfig.properties, you could
display katakana, hiragana and kanji with tonpuu gothic/mincho to use
general java font set such as Dialog, Serif, etc.

> //fontMenu.setFont( new Font( "東風ゴシック", Font.PLAIN, 40 ));
> //fontMenu.setFont( new Font( "東風明朝", Font.PLAIN, 40 ));
> fontMenu.setFont( new Font( "GT2000-01", Font.PLAIN, 40 ));

If you configure fontconfig.properties right, you could use Japanese
character without special font set. You don't have to specify special
font set here. You can use Japanese with ngeneral pre-defined font set
in Java like Dialog, Serif, Monoscaped and etc.

cheers,

Takashi Okamoto



Reply to: