Abdelrazak Younes wrote:

>> Ok. Note that I nobody disagrees with the general view (I don't know if I
>> explained myself enough before).

Sorry. I started to write in first person but then I realized that everyone
would agree. ;-) So take out the 'I'.

> I cannot parse what's above ;-)
> 
>> It's just that the baseline is as good as
>> anything else for specifying the position of the frame (for instance, why
>> don't we use bottom_y instead of top_y, no particular reason),
> 
> Oh yes, there is a reason, we know where to start and that is the
> top-left corner (i.e. y = 0). I grant you we could also draw from the
> bottom but that would necessitate a lot of coordinate changing.

Of course ;-) 

>> and we use
>> baseline everywhere [i.e. in the lyx sources, if the object has a
>> Dimension, "y" == "baseline"]. So are we really sure this battle is worth
>> fighting (I mean changing everything to understand top_y).
> 
> I think there is a misundertanding here... I agree that the baseline is
> the reference and I did not change that philosophy I think. For me the
> baseline is the baseline of the inset, not the baseline of the inner
> Text. The fact that InsetCollapsable adjust its baseline to its inner
> Text is just a special case.

Not so special (pretty much every Text related Inset) but yes.

> Now, that's my turn to be unsure of the clarity of what I'm saying...

I'm not sure either... So you don't plan to switch every InsetX::draw
function to accept top_y, just TextMetrics::draw? 

A/


Reply via email to