MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

Line component of TextLines ignores Text alignment

Open XiaoMigros opened this issue 9 months ago • 3 comments

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) image

Center-aligned image

Right-aligned image

Steps to reproduce

  1. Add a cresc. line to the score
  2. 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

XiaoMigros avatar Apr 27 '24 15:04 XiaoMigros

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).

image

Using "Placement" to not be auto but rather "above" or whatever would allow for the text to be detached from the line positioning

worldwideweary avatar Apr 30 '24 22:04 worldwideweary

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

XiaoMigros avatar May 01 '24 05:05 XiaoMigros

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.

worldwideweary avatar May 01 '24 05:05 worldwideweary