[Top][All Lists]

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

Re: Horizontal alignment of DynamicTextSpanner left text

From: Jean Abou Samra
Subject: Re: Horizontal alignment of DynamicTextSpanner left text
Date: Mon, 31 Jan 2022 17:39:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Le 31/01/2022 à 16:54, Simon Albrecht a écrit :
Hello list,

normally, horizontal alignment of grobs to other grobs is adjusted using self-alignment-X and parent-alignment-X—IIRC, this was homogenised some a couple years ago.

However, when wanting to adjust the alignment of a DynamicTextSpanner’s left bound, I found that this is much less clear for spanners. They have the parent-alignment-X component hidden behind the misleading property name attach-dir, and no default way of adjusting self-alignment-X via grob property (see this thread [1] for workarounds).

I suggest modifying line-spanner-interface to use self-alignment-X and parent-alignment-X in all subproperties of bound-details, and heeding these properties for DynamicTextSpanner and similar grobs.

Best, Simon

[1] https://lists.gnu.org/archive/html/lilypond-user/2022-01/msg00389.html

Do you have some knowledge of C++? Unlike vertical
placement, which is a little subtler, horizontal placement
in lily/line-spanner.cc is quite straightforward.
I'd expect a patch for this not to require extensive
knowledge of internals.


reply via email to

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