> I input some chinese character and english character into 
> input widget, it only display english character, and the 
> chinese character only display as blank. But if I use 
> input_widget->value() to get the string, it can get the whole 
> string(include chinese and english chracter), so why it can't 
> display chinese chracter.
> 
> In other widget, such as button, it can display chinese 
> character well.
> 
> my fltk version is v2.0

This sounds like it might be a font selection issue. Though that may
depend on what host platform you are on...

If your host is OSX, or a version of Windows from Vista or Win7, then
the font rendering engine (provided by the OS) will attempt to
substitute any missing glyphs from the current font with glyphs from a
default fall-back font. This generally works very well, though you do
sometimes see glyphs that look slightly "out of place" in your text as a
result...

However, older versions of Windows and our implementation on X11
systems, does not have that ability, so it is imperative that you set a
font for the widget that can actually display the glyphs you are
requesting, or you get these blanks.

All I can suggest is that you try setting a few different font faces for
your input widget and see how that affects the displayed text... Not
ideal.
Also, see the fonts demo in the test folder.

Well, that's what I'd expect the problem to be for 1.1 or 1.3. There may
be other differences in fltk-2 that I am not aware of, of course.



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to