Re: lyx-devel src/: FontIterator.C coordcache.C coordcache.h p ...

2005-07-18 Thread Jean-Marc Lasgouttes
> "Alfredo" == Alfredo Braunstein <[EMAIL PROTECTED]> writes: Alfredo> Just to know... what would be missing in fontiterator? Alfredo> operator+= would be enough perhaps? Or maybe Alfredo> operator=(lyx::pos_type) to put it in an arbitrary paragraph Alfredo> position? We should have one mode

Re: lyx-devel src/: FontIterator.C coordcache.C coordcache.h p ...

2005-07-18 Thread Alfredo Braunstein
Jean-Marc Lasgouttes wrote: >> "Alfredo" == Alfredo Braunstein >> <[EMAIL PROTECTED]> writes: > > Alfredo> Small nitpick... Isn't it possible to use a FontIterator for > Alfredo> the optimization? > > But FontIterator does not handle the bidi stuff, does it? I think this > solution is th

Re: lyx-devel src/: FontIterator.C coordcache.C coordcache.h p ...

2005-07-18 Thread Jean-Marc Lasgouttes
> "Alfredo" == Alfredo Braunstein <[EMAIL PROTECTED]> writes: Alfredo> Small nitpick... Isn't it possible to use a FontIterator for Alfredo> the optimization? But FontIterator does not handle the bidi stuff, does it? I think this solution is the simplest to implement when we are walking not i

Re: lyx-devel src/: FontIterator.C coordcache.C coordcache.h p ...

2005-07-18 Thread Alfredo Braunstein
Small nitpick... Isn't it possible to use a FontIterator for the optimization? + // Use font span to speed things up, see below + FontSpan font_span = par.fontSpan(row_pos); + LyXFont font = getFont(par, row_pos); + for (pos_type vpos = row_pos; vpos < cursor_vpos; ++vpos