DescriptionIf a grob's parent is a PaperColumn, align using NoteColumns extent.
This makes unassociated lyrics behave consistently with associated lyrics.
Until now, unassociated lyrics (i.e. lyrics without an associatedVoice) were all left-aligned (more precisely: their X-offset was 0). Changing self-alignment-X didn't have any effect on them. This was because X-parent of an unassociated LyricText is a PaperColumn, and aligned_on_parent didn't know how to handle that.
This patch tells aligned_on_parent to use the extent of respective NoteColumns as the parent extent needed for grob alignment. Additionally to fixing unassociated lyrics behaviour, this should allow correctly aligning_on_parent other grobs, such as DynamicTexts.
Expected changes in regtests: all lyrics should now be centered by default. This affects 11 regtests.
Patch Set 1 #Patch Set 2 : calculate extent of notecolumn and use it for aligning #Patch Set 3 : add regtest #
Total comments: 2
Patch Set 4 : make the method for calculating extents more generic and move it to PaperColumn #
MessagesTotal messages: 9
|