MuseScore
MuseScore copied to clipboard
Line component of TextLines ignores Text alignment
Issue type
Engraving bug (incorrect score rendering)
Bug description
The line component of TextLine based elements (cresc. lines, ottavas, pedals, etc.) ignores the horizontal alignment of the text when calculating its length. This can lead to an ugly gap.
Left-aligned (correct)
Center-aligned
Right-aligned
Steps to reproduce
- Add a cresc. line to the score
- Change the text alignment of the begin text
Screenshots/Screen recordings
No response
MuseScore Version
master
Regression
No.
Operating system
Windows 10
Additional context
No response
P.S., if you don't mind, how can a user of Mu4 get the offset of the text like this with these changes? I'd imagine there's a way, but I'm not familiar much with the differences. A quick test and i couldn't figure it out with the text-style options. Originally in 3, 1) Right alignment + 2) a Y-offset within inspector would allow for this (or at the end of a text etc).
Using "Placement" to not be auto but rather "above" or whatever would allow for the text to be detached from the line positioning
Hi, this can currently still be achieved using x- and y-offset in properties. the 'placement' option would work as well but is not exposed in properties at the moment
Gotcha. Thanks for the response. For some reason I was thinking at the time of the question that the appropriate x/y-offset was the score-wide one (since that's where the alignment option is located), and it wasn't doing anything when I quickly tested.