nanogui: chinese font display on nxlib and fltk-1.1.3


Previous by date: 28 Jul 2004 16:27:45 +0100 Re: fonts HowTo for microwindows?, Steven Scholz
Next by date: 28 Jul 2004 16:27:45 +0100 Re: Touchscreen response in 0.90 seems slower than 0.89pre11, Pete Klemm
Previous in thread: 28 Jul 2004 16:27:45 +0100 Re: chinese font display on nxlib and fltk-1.1.3, Ronnie Wang
Next in thread:

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: ####@####.####



Previous by date: 28 Jul 2004 16:27:45 +0100 Re: fonts HowTo for microwindows?, Steven Scholz
Next by date: 28 Jul 2004 16:27:45 +0100 Re: Touchscreen response in 0.90 seems slower than 0.89pre11, Pete Klemm
Previous in thread: 28 Jul 2004 16:27:45 +0100 Re: chinese font display on nxlib and fltk-1.1.3, Ronnie Wang
Next in thread:


Powered by ezmlm-browse 0.20.