bug of "pango_layout_move_cursor_visually"

2009-08-11 Thread 王旭光
I find a bug of "pango_layout_move_cursor_visually": the layout text is "012345" , I move cursor from (index:100, trailing:100) to left. I first get (5, 5). I think it should be (5, 1), that is the rightest position. the code is: int index = 100; int trailing

Re: Distinct performance issues with Japanese only on win32 systems

2009-08-11 Thread David E. Hollingsworth
A few weeks ago I reported a performance issue regarding the use of Uniscribe in the win32 basic shaper. It turns out that the issue was with the use of Uniscribe's SCRIPT_CACHE. Despite the name, this value is for caching per-font-plus-size values, not per-script values. See: http://msdn.mi

Re: Distinct performance issues with Japanese only on win32 systems

2009-08-11 Thread Tor Lillqvist
> Since shaping occurs on runs containing a single font, we only need > one SCRIPT_CACHE in uniscribe_shape.  I'm including a patch below that > does this.  With the patch applied, the time for one of my tests went > from 20s to .3s. Wow! Thank you very much for investigating. Will apply the patch