Dear Friends,
Kindly solve my below problem ASAP.
I supposed to develop a GUI which render multi language in a single gui
component(for example: in a single Fl_Box label). I am using unicode fonts to
display. Here comes the problem.
I need to display the hindi word "हिà¤à¤¦à¥" in a Fl_Box label. That
hindi word gets altered while displaying.
Sample code:
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Input.H>
Fl_Double_Window* make_window();
Fl_Double_Window* make_window() {
Fl_Double_Window* w;
{
Fl_Double_Window* o = new Fl_Double_Window(500, 500);
w = o;
{
Fl_Box *box = new Fl_Box(25, 25, 400, 400, "हिà¤à¤¦à¥");
box->labelfont(FL_HELVETICA);
box->labelsize(40);
}
o->end();
}
return w;
}
int main(){
Fl::set_font(FL_HELVETICA,"gargi");
make_window()->show();
return Fl::run();
}
Kindly execute the above code and see the difference between hindi characters
in the Editor and the FLTK GUI window.
Kindly analyze the problem and let me know....
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk