About Pango direction



hi all ,

   i have one doubt , any one please clarify me.....
i built a text editor using Pango . Initially i was not mentioned the base direction (i.e PANGO_DIRECTION_LTR). so Pango was able to find the base direction automatically. In this case for numeric, punctuations it was selecting the direction " PANGO_DIRECTION_LTR_WEAk" when pango_layout_move_cursor_visually() called and it was giving unexpected(sometimes G_MAX_INT or 0) output. after mentioning base direction while creating the PAngo_context() it is working fine. but i am understanding why its behaving like this , is it necessary to mention base_dir to render layout and for editing ?

Thanks in advance

Girish


--

----------------------------------------------------------------------
" Faith begins when ability fails..."

Girish A J Associate - Software, Ph: (80) 2361 8184-86 Ext 135
PicoPeta Simputers Pvt Ltd.        Fax: (80) 2361 7568
146 5th Cross, RMV Extension,      email: girish picopeta com
Bangalore - 560 080. Mobile:9886043248 URL http://www.picopeta.com --------------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]