[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
chinese font display on nxlib and fltk-1.1.3
From: "Ronnie Wang" ####@####.#### Date: 28 Jul 2004 07:30:58 +0100 Message-Id: <001901c4746c$a48e0f80$9c4912ac@cn.utstarcom.com> Hi all! It's perfect that the fltk-1.1.3 run on the nxlib!!!! But as I Chinese the important things I care about the Chinese font supporting.So a add some Chinese font to the demo hello.cxx And re-compile.But the Chinese cann't display properly . So can someone have make this work tell me how to do it ? Any hints is so useful for me!! ************************************ 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: ####@####.#### ####@####.#### ************************************ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] chinese font display on nxlib and fltk-1.1.3
From: "Greg Haerr" ####@####.#### Date: 28 Jul 2004 08:39:34 +0100 Message-Id: <035001c47475$d9a0b480$3aba46a6@xmission.com> : It's perfect that the fltk-1.1.3 run on the nxlib!!!! : But as I Chinese the important things I care about the : Chinese font supporting.So a add some Chinese font to the demo hello.cxx You will probably need to modify the GrText calls in NXLIB to indicate the encoding method you're using for the text that is being output through FLTK. NXLIB emulates Xlib, and Xlib, by default, requires ASCII. If you are using UTF8 encoding, then GrText requires the MWTF_UTF8 flag as the last parameter to GrText, for example. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
答复: [nanogui] chinese font display on nxlib and fltk-1.1.3
From: "Ronnie Wang" ####@####.#### Date: 28 Jul 2004 09:05:44 +0100 Message-Id: <002101c47479$e0c5a2d0$9c4912ac@cn.utstarcom.com> Hi Greg! Thanks for you reply ! It seems the font the fltk used is not the font of the microwin but the x11.Each time run the demo there is a message like following: "XLoadFont('-adobe-helvetica-medium-r-normal--14-100-100-100-p-76-iso885 9-1') ='/usr/lib/X11/fonts/100dpi……*.gz'" So I think we modify the encoding of the GrText is useless. (Also I have tested the method and the Chinese font can not display properly) -----邮件原件----- 发件人: Greg Haerr ####@####.#### 发送时间: 2004年7月28日 15:38 收件人: Ronnie Wang; ####@####.#### 主题: Re: [nanogui] chinese font display on nxlib and fltk-1.1.3 : It's perfect that the fltk-1.1.3 run on the nxlib!!!! : But as I Chinese the important things I care about the : Chinese font supporting.So a add some Chinese font to the demo hello.cxx You will probably need to modify the GrText calls in NXLIB to indicate the encoding method you're using for the text that is being output through FLTK. NXLIB emulates Xlib, and Xlib, by default, requires ASCII. If you are using UTF8 encoding, then GrText requires the MWTF_UTF8 flag as the last parameter to GrText, for example. Regards, Greg --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] chinese font display on nxlib and fltk-1.1.3
From: "Greg Haerr" ####@####.#### Date: 28 Jul 2004 16:27:45 +0100 Message-Id: <041001c474b7$41f307e0$3aba46a6@xmission.com> > It seems the font the fltk used is not the font of the microwin but the x11.Each time run the demo there is a message like following: "XLoadFont('-adobe-helvetica-medium-r-normal--14-100-100-100-p-76-iso885 9-1') ='/usr/lib/X11/fonts/100dpi……*.gz'" So I think we modify the encoding of the GrText is useless. (Also I have tested the method and the Chinese font can not display properly) Ronnie - No, the above just shows the mapping from the X11 fonts.dir file specification to a .pcf.gz filename. The .pcf.gz filename may be unicode-indexed and/or require DBCS or UTF8 decoding from 8-bit input bytes from the strings passed through FLTK. You can test this with Microwindows src/demos/nanox/t1demo.c. Remember, NXLIB emulates Xlib, and Xlib by default expects ASCII characters, not DBCS encoding. This is why the flags parameter to GrText will have to change to the input format coming through FLTK and your application. Regards, Greg -----邮件原件----- 发件人: Greg Haerr ####@####.#### 发送时间: 2004年7月28日 15:38 收件人: Ronnie Wang; ####@####.#### 主题: Re: [nanogui] chinese font display on nxlib and fltk-1.1.3 : It's perfect that the fltk-1.1.3 run on the nxlib!!!! : But as I Chinese the important things I care about the : Chinese font supporting.So a add some Chinese font to the demo hello.cxx You will probably need to modify the GrText calls in NXLIB to indicate the encoding method you're using for the text that is being output through FLTK. NXLIB emulates Xlib, and Xlib, by default, requires ASCII. If you are using UTF8 encoding, then GrText requires the MWTF_UTF8 flag as the last parameter to GrText, for example. Regards, Greg --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |