"Align baseline of text to reference point" in vertical frame is broken
S3 - Major
OS: Windows 10 (10.0), Arch.: x86_64,
MuseScore version (64-bit): 184.108.40.20637, revision: b5add95
- Create a Vertical Frame, insert a Titie, Lyricist and Composer.
- Ensure that the text for Lyricist has descenders (letters like g, p, y).
Ensure that the text for Composer has no descenders.
- Notice that the Lyricist text is slightly misaligned, because the descenders have pushed the text higher.
- Now select the Lyricist text and click the icon for "Align baseline of text with reference point"
Expected result: the Lyricist text should settle downwards so that the descenders are slightly below the frame edge
Actual result: the Lyricist text move substantially upwards, as if the "reference point" is completely random:
|Align property of Lyricist and Composer - MS 3.5 beta.mscz||9.86 KB|
Been the case since MuseScore 2. (not in MuseScore 1 though).
See also #306840: Text (Composer/Lyricist) Mis-Alignment of texts with letters that have descender vs. those that don't in vertical frames, esp. reg. your points 2. and 3.
Had come up in https://musescore.org/en/node/306662
I’ve seen this in general “text” items in vertical frames as well, not just in the top “title/composer/etc.” frame.
The text alignment options are being overloaded, being used to set the reference point within the vertical frame as well as the reference point in the text.
Top: “Align top edge of text to reference point” - aligns top of text’s bounding box (varies with caps, parens, etc.) to the TOP of the vertical frame.
Center: “Center text vertical to reference point” - aligns center of text’s bounding box (?) to the CENTER of the vertical frame
Bottom: “Align bottom edge of text to reference point” - aligns bottom of text’s bounding box (will vary with descenders, commas, etc.) to the BOTTOM of vertical frame
Baseline: “Align baseline of text to reference point” - aligns the baseline (“bottom” not counting descenders, etc. – what we’d usually think of as the consistent “more or less bottom” of the text!) to the CENTER (?!) of the vertical frame. A workaround here could be to use “baseline” with a Y offset to bring the lyricist and composer lines low enough, but they won’t perfectly follow the vertical frame’s size if it’s changed.
Another non-intuitive thing about the baseline option is that it uses the baseline of the FIRST line of multi-line text items, where using the last line might be the more common case for “bottom” items like the lyricist and composer.
The UI needs better controls for all this. Hopefully I’ll think of a coherent suggestion and submit a feature request… and if someone beat me to it and did it better… good!
In reply to I’ve seen this in general … by grinningcat
An idea for more and better control over vertical text alignment, without throwing too many buttons and options at people if they don’t want them:
#334675: Text alignment in vertical frames: allow specifying text reference point (e.g. baseline) and frame reference point (e.g. bottom) separately
(with UI mockups and examples of score header text)