Thnaks for the reply. If u could explain me how does fl_draw() work, it may help me. As i have to understand the xpos and ypos in fl_draw(). how does it work for center alignment.
thanks, Rama On Thu, Oct 23, 2008 at 4:14 PM, MacArthur, Ian (SELEX GALILEO, UK) < [EMAIL PROTECTED]> wrote: > > > I have a query regarding FLTK and Korean string. > > > > I have a board which uses ARM OS. I build my firmware on Linux OS. I > > have application part and underlying FLTK engine. > > Which fltk version? 1.1 doesn't really handle UTF text, 1.3 and 2.x more > or less do. > > Also, which font backend is your Linux system using? > That is, does it use XFT or Xlib or something else? > > > My application works for English and Korean text. > > > > I have an FL_BOX in which I have to display the string. > > > > In application part, I set the label of the string to be displayed in > > the box and set it as FL_ALIGN_CENTER. > > > > I have to call the function GrText() to draw the string on board. > > GrText takes UTF-16 string and x, y. > > > > But x, y were calculated according to UTF-8 Korean string wherad I > > have to pass UTf-16 string to GrText. So my Korean string is not > > coming at correct place. I mean alignment is not proper whereas it > > works fine for English string. > > I don't know what GrText is... > > Fltk-1.3 can make a utf-16 string from a utf-8 one using the function > fl_utf8toUtf16(...), if that is any help. > > Actually, are you sure it is utf-16? A lot of Linux systems use 32-bit > utf characters (UCS-4) rather than utf-16... > > Fltk-2 uses the function utf8towc() for the equivalent conversion, but > I'm pretty sure that returns "UCS-4" rather than utf-16... > > Anyway: > In what way is the alignment not proper? Is there some origin offset? Is > it related in some way to the Box origin? > > > > > > SELEX Sensors and Airborne Systems Limited > 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-dev mailing list > [email protected] > http://lists.easysw.com/mailman/listinfo/fltk-dev >
_______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
