nanogui: Internationalization and config
Subject:
Re: [nanogui] Internationalization and config
From:
"wang yuan" ####@####.####
Date:
27 Apr 2004 04:35:17 +0100
Message-Id: <BAY18-F142ZhCl8aii000014e10@hotmail.com>
hi,Ronnie Wang
try "MWTF_DBCS_EUCCN" instead of "GR_TFASCII | GR_TFTOP" in GrText().
in microwin-0.89, GR_TFASCII is ok ,but in 0.9,you'd
better use MWTF_DBCS_EUCCN.
And make sure that you have set the fonts/chinese .
======= 2004-04-27 10:18:00 您在来信中写道:=======
>Dear all & Greg!
> I make the demo2 to display Chinese by the following change:
>
> First change the config file to :
>
> HAVE_HZK_SUPPORT = Y
>HZK_FONT_DIR = "fonts/chinese"
>
>####################################################################
># Chinese BIG5 compiled in font support (big5font.c)
>####################################################################
>HAVE_BIG5_SUPPORT = N
>
>####################################################################
># Chinese GB2312 compiled in font support (gb2312font.c)
>####################################################################
>HAVE_GB2312_SUPPORT = Y
>
>Second select font and make GC support it:
>
>fontid = GrCreateFont("HZKFONT",0, NULL);
>GrSetGCFont(TextGC,fontid);
>GrText(TextWindow, TextGC, 0, 16, "你好",-1, GR_TFASCII | GR_TFTOP);
>
>My puzzle is :
>
> When I run as : bin/nano-X& bin/nanowm& bin/demo2 in the dir src
>(…../microwin/src) and it can display Chinese properly.
> But when I run in the dir bin (……./microwin/src/bin) as following
>: ./nano-X & ./nanowm& ./demo2. It can not display the Chinese properly.
>
>
>Why???
>
>Best Regard
>*********************************
>Ronnie Wang(Wang Xingqiang)
>
>UTStarcom Telecom Co., Ltd.
>#129 WenYi Road, Hangzhou,
>31002 P.R. China
>
>Tel: (086-571) 8886-2342 ext. 6138
>Email: ####@####.####
>************************************
>
= = = = = = = = = = = = = = = = = = = =
致
礼!
wangyuan
####@####.####
2004-04-27
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com