Re: Japanese Display for gtk+-1.2.9

On Thu, 27 Oct 2005 23:40:13 +0900
mpsuzuki hiroshima-u ac jp wrote:
>In next, I have to write small X11 test program to display
>Japanese text...

Attached is sample to display Japanese text with the font:

Compile it as:
	gcc -I/usr/X11R6/include -o xmbcs xmbcs.c -L/usr/X11R6/lib -lX11

Execute it as:
	env LANG=ja_JP ./xmbcs

If works correctly (it means X11 itself is capable to display
Japanese text with XmbDrawString, which is used by gtk+-1.2.x
either), you will receive small window like attached GIF.


Attachment: xmbcs.c
Description: Binary data

Attachment: xmbcs.gif
Description: GIF image

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