Right-aligned text in Edwin isn't aligned, depending on kerning

• Apr 28, 2021 - 21:27
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
Yes
Workaround
No
Project
  1. Create a new score
  2. In the composer text field, enter AUAUAUAUAUAU
  3. Note how the text moves to the left after each AU pair

It looks like the right-alignment code doesn't properly take into account kerning. So this will look different depending on the composer's name. This looks pretty bad especially for multi-line text.

Attachment Size
right-aligned-bug.mscz 7.54 KB

Comments

Regression Yes No

I can reproduce on Linux. it seems from the score properties you may be on Linux as well? Will be interesting to check on other OS's. See also #25922: Right aligned text does not align correctly, which was about a similar issue we saw years ago that somehow seemed fixed at one point. But for me, FreeSerif works fine, so does MuseJazz Text. and indeed most fonts I have installed. Other than Edwin, most seem fine, or are only off by a little. The only ones as bad or worse are Garamond and Petaluma Script.