[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distance of a grob from its reference point

From: Paolo Prete
Subject: Re: Distance of a grob from its reference point
Date: Thu, 16 Jan 2020 23:25:20 +0100

On Thu, Jan 16, 2020 at 11:09 PM Paolo Prete <address@hidden> wrote:


0.56 s exactly the quantity corresponding to extra-offset to 0.1.   But if you produce a SVG file, and open it with a text editor, you will see three pairs of coordinates:

(first bracket)
<text transform="translate(35.1781, 4.6976)" .... 

(second bracket)
<text transform="translate(35.1781, 4.6976)" .... 

(third bracket)
<text transform="translate(48.2297, 4.5976)"...

As you can see, only the third bracket (corresponding to the extra-offset property) is correctly shifted by 0.1

I also checked that the same issue happens with DynamicLineSpanner. There's a value aroud 0.46, but not exactly 0.46 as the default offset.  And it seems to be the same for both OttavaBracket and DynamicLineSpanner....
Where did you pick the 0.46 value? I did grep on the whole tree src, and even if it's set as  default_outside_staff_padding_  ( it must have overridden by something else...


Well, I think I got the issue.
You don't have to consider the default 0.46 value.
outside-staff-padding's behavior is similar to Y-offset's one (I'm talking about \override, NOT \offset command). It only differs for the reference point. Third line in Y-offset, first line in outside-staff-padding.
So, you can use it only with a ruler starting from the ref point. 
Even if uncomfortable, it makes sense.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]