Re: Japanese Display for gtk+-1.2.9



Hi

On Tue, 25 Oct 2005 11:33:57 +0800
Xyber Blue <xyberblue gmail com> wrote:

>I already successfully cross compiled xlsfonts to my target.

Congratulation.

># ./xlsfonts | grep jis
>-jis-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0
>-jis-fixed-medium-r-normal--16-110-100-100-c-160-jisx0208.1983-0
>-jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0
>-jis-fixed-medium-r-normal--24-170-100-100-c-240-jisx0208.1983-0
>-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
>-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0201.1976-0
>-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0
>-misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
>-misc-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0
>-sony-fixed-medium-r-normal--0-0-100-100-c-0-jisx0201.1976-0
>-sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0
>-sony-fixed-medium-r-normal--16-150-75-75-c-80-jisx0201.1976-0
>-sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0
>-sony-fixed-medium-r-normal--24-230-75-75-c-120-jisx0201.1976-0

Hmm, from the output, your X server provides Japanese fonts
for 14pt, 16pt and 24pt sizes. Please check gtk+ font selector.
If you don't have testgtk or it's too large, use attached
testfont.c. It can be compiled simply as:

gcc `gtk-config --cflags` -o testfont.exe testfont.c `gtk-config --libs`

(ok button does not exit, kill it explicitly)

After starting font selector (LANG=C is very enough), check
following points. Also I attached screen shot at typical status
when I choose Japanese font for 14pt, under LANG=C.

checkpoint 1
------------
Lookup "fixed (misc)" in "Font:" list.

checkpoint 2
------------
If checkpoint 1 is ok, lookup "jisx0208.1983-0" in "Font Style:".

checkpoint 3
------------
If checkpoint 2 is ok, run testfont (or testgtk) under LANG=ja_JP,
copy and paste some Japanese text into preview widget. Is it displayed
correctly?

checkpoint 4
------------
If checkpoint 3 is ok, lookup /usr/share/locale/ja/LC_MESSAGES/gtk+.mo
in your target system. If not, lookup gtk+.mo in anywhere else.


--

If anything wrong in checkpoint 1, 2, 3, it means that your gtk+-1.2.9
cannot access Japanese fonts. If 1, 2, 3 is OK but 4 is not OK, it
means that your gtk+-1.2.9 can display Japanese text, but gtk+-1.2.9
could not load Japanese message catalogues to print on buttons.

Regards,
mpsuzuki

Attachment: testfont.c
Description: Binary data

Attachment: testfont.gif
Description: GIF image



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