Re: [RFC] New fl_BlockLayout::findPointCoords implementation


Subject: Re: [RFC] New fl_BlockLayout::findPointCoords implementation
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Wed May 31 2000 - 00:22:23 CDT


On Mon, 29 May 2000, Jesper Skov wrote:

> >>>>> "Martin" == Martin Sevior <msevior@mccubbin.ph.unimelb.edu.au> writes:
>
> Martin> On Mon, 29 May 2000, Jesper Skov wrote:
> >> This is explained by a subtlety in the old code; after finding the
> >> requested offset, it would return the Run at that offset, but
> >> calculate position/size from the previous Run. I simply overlooked
> >> this when starting over - and didn't try different font sizes, so
> >> using the returned Run for cursor calculations was fine.
> >>
> >> Anyway, it's is linked to this:
> >>
> Martin> ... and if you press "superscript" or "subscript" the cursor
> Martin> immediately changes size and location correctly. This didn't
> Martin> used to work. Also changing font size immediately changes the
> Martin> size of the cursor. This also didn't use to work on new lines
> Martin> after hitting return.
> >> It's impossible for the code to distinguish between these two
> >> cases. In the first it should return the size of the previous Run,
> >> in the second it should return the size of the current Run (being
> >> the first and only Run having the new font properties).
>
> On second thought - this can be recognized since selecting font
> size/whatever introduces a FMT marker. All I have to do is stop
> scanning when seeing one of these. I will try that.

HI Jesper,
          If you can get this to work send me the patch and I will commit
it. Abi will run better with this immediately. Fixing the font boundary
problem is a longer term project. I think it is better to procede
incrementally.

Cheers

Martin



This archive was generated by hypermail 2b25 : Wed May 31 2000 - 00:22:35 CDT