[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
How display simple Chinese use nano-X api?
From: DQ ####@####.#### Date: 6 Dec 2005 07:43:17 +0000 Message-Id: <20051206074246.74008.qmail@web15003.mail.cnb.yahoo.com> hi: I use microwindows-0.91 and nano-x api to test t1demo.c, but can't display correctly simple Chinese, big5 is OK, HAVE_HZK_SUPPORT N #if Y, files hzx12 & asc12 will be loaded HAVE_BIG5_SUPPORT N HAVE_GB2312_SUPPORT Y I modify #define HZKBIG5 1 to 0, the screen is show bad code, and I can't find MWTF_DBCS_GB define, it was be deleted? I test with MWTF_DBCS_EUCCN, but display error code, I should use what methods to display simple chinese? best regard dq --------------------------------- 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 雅虎助手¨D搜索、杀毒、防骚扰 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] How display simple Chinese use nano-X api?
From: "Greg Haerr" ####@####.#### Date: 6 Dec 2005 20:51:00 +0000 Message-Id: <02fa01c5faa6$c919bef0$6401a8c0@gregnewport> > I use microwindows-0.91 and nano-x api to test t1demo.c, but can't display correctly simple Chinese, big5 is OK, > HAVE_HZK_SUPPORT N #if Y, files hzx12 & asc12 will be loaded > HAVE_BIG5_SUPPORT N > HAVE_GB2312_SUPPORT Y > I modify #define HZKBIG5 1 to 0, the screen is show bad code, These defines are now obsolete, they use the older method of having chinese font files linked in or in non-standard external format, along with specialized text input conversion routines that don't allow multiple choices. >and I can't find MWTF_DBCS_GB define, it was be deleted? I test with MWTF_DBCS_EUCCN, but display error code, I should use what methods to display simple chinese? The MWTF_DBCS_xxx defines are used to specify text input format, not the font file. The recommended method of displaying chinese is to convert a unicode chinese .bdf file of your choosing to .fnt or .pcf format, load it using GrCreateFont, and then output text using the format specified with MWTF_DBCS_xxx using the GrText call. The DBCS_GB is named DBCS_GB2312. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |