Re: Japanese Display for gtk+-1.2.9


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

>I already successfully cross compiled xlsfonts to my target.


># ./xlsfonts | grep jis

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

checkpoint 4
If checkpoint 3 is ok, lookup /usr/share/locale/ja/LC_MESSAGES/
in your target system. If not, lookup 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.


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]