Re: Japanese Display for gtk+-1.2.9



the contents on my gtkrc.ja files are as follows:

style "gtk-default-ja" {
       fontset = "-adobe-helvetica-medium-r-normal--14-100-100-100-p-76-iso8859-1,\
                  -ricoh-ms mincho-medium-r-normal--14-*-*-*-*-*-jisx0208.1983-0,\
                  -misc-fixed-medium-r-normal--14-*-*-*-*-*-jisx0208.1983-0,\
                  *-r-*"
}

class "GtkWidget" style "gtk-default-ja"

This is only what the gtk provides....

On 10/19/05, mpsuzuki hiroshima-u ac jp < mpsuzuki hiroshima-u ac jp> wrote:
On Wed, 19 Oct 2005 14:11:45 +0800
Xyber Blue < xyberblue gmail com> wrote:

>By the way, the dillo successfully displayed japanese because we install
>fonts which is the
>
>usc-fonts.tar.gz
> usc-fonts-asian.tar.gz

If dillo displays html by those fonts, the font handling of
the widget to display Japanese html is very different from
gtk+-1.2 proper widget families (as you've found that gtk+-1.2
does not support UCS2 nor UTF-8). Therefore, even if you can
find something named as eucjp-fonts-asian.tar.gz, they won't
help gtk+-1.2 problem.

>Is there a specific japanese font for EUC-JP encoding???
>Because the ucs-fonts-asian only support UTF-8 encoding
>and also we found out that gtk-1.2 does not support UTF-8
>encoding. EUC-JP is the supported one for gtk-1.2.

>any hints on where I could find these fonts for EUC-JP???

gtk+-1.2 proper widget uses X core fonts, so the font file in
/usr/X11R6/lib/X11/fonts/misc are what you're looking for.

>>>If Japanese fonts are accessible via X core font API, the next problem
>>>might be gtkrc is tuned to request unavailable Japanese fonts.
>>>Please check if there's gtkrc.ja in some directory. In it, usually
>>>default fontset for LANG=ja_JP environment is described.
>
>I also noticed that file, when Im trying to renamed it, widgets display
>gurbled instead of lines. Maybe I was thinking also of the possibility that
>the fontset beeing defined by gtkrc.ja can't be found. But I don't know
>what's this exact japanese font for EUC-JP.

The font names in gtkrc.ja should be X core font name, not
font file name, nor fontconfig name. Please show how did you
wrote it. Anyway, font access via X core font API requires
that X-server is configured correctly. To check X-server's
configuration, using xlsfonts/xfontsel/xfd are recommended.

Regards,
mpsuzuki



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