lilypond-user
[Top][All Lists]
Advanced

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

Re: Variable binding breaks layout


From: Jean Abou Samra
Subject: Re: Variable binding breaks layout
Date: Thu, 11 May 2023 11:07:43 +0200
User-agent: Evolution 3.48.1 (3.48.1-1.fc38)

Le jeudi 11 mai 2023 à 06:26 +0000, juergen.gruen@xyz.de a écrit :
Hello all,


why does each of the out commented lines break the layout when active? And why does "(brace-Y..." not?


What breaks the layout is not the variable bindings per se of course, but the ly:grob-property calls, and that's because you are asking for information too early. At the moment after-line-breaking is run, page layout is not done yet. Asking for the Y-extent of the brace indirectly triggers calculations of the distance between staves while the backend is generally not yet in a state where it is able to compute them correctly. The X-extent of SystemStartBrace is unset (https://lilypond.org/doc/v2.24/Documentation/internals/systemstartbrace) which means LilyPond uses the default of computing it from the grob's stencil, so when you ask for the X-extent, it will try to compute the stencil, and thus the height, leading to the same problem. Similarly, the X-offset is based on side positioning (ly:side-position-interface::x-aligned-side) so it will request the stencil.

On the other hand, the Y-offset is always 0, so you don't get problems, but it's not very useful either.


Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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