On Thursday 05 January 2006 14:27, Frank Meies wrote: > Hi Rajeev, > > Rajeev J Sebastian wrote: > > I did go through the area where Lange had mentioned the cursor code was > > handled. Didn't find anything interesting there. Could you point out > > where the the text width is computed for a range of characters ? > > please have a look at sw/source/core/txtnode/fntcache.cxx, there you > will find the function SwFntObj::GetTextSize(). This function is used to > > - calculate the text width for the text formatting > - calculate the cursor position. > > An introduction to the Writer text formatting engine (including the > cursor travelling stuff) can be found here: > > http://sw.openoffice.org/drafts/text_formatting.html > > Hope this helps, Amazing document! Thanks a lot for it :)
Actually, the problem it seems is not the text size itself. Rather it is cursor movement across the spaces between words. The cursor either overshoots or "under"shoots, and this causes the overlap. Looking at the cursor movement, it seems the text size (for a piece of text) is computed correctly and cursor uses it properly, but the wrong size of the spaces between words are added to it, which causes the wrong cursor placement. Btw, is this the common list to discuss such issues ? It seems to be almost empty. Regards, Rajeev J Sebastian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
