Text width can be calculated incorrectly

• Sep 23, 2020 - 13:55
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Starting with the latest update (to 3.5.0.13199, Rev 43c5553) whenever I create a Rehearsal Mark (Ctrl-M) the mark looks as if it's padded with spaces. In reality the cursor does not go to the actual place in the mark that will be edited. This can be seen in the attached, but is especially apparent in the last rehearsal mark at the bottom of the page.

Attachment Size
Dehradun.mscz 12.16 KB

Comments

Title Rehearsal Marks - editing is not in the same place as the cursor; marks look like padded with spaces but aren't Text width can be calculated incorrectly

As far as I can tell, the issue is that the width of the text is being calculated incorrectly, perhaps the kerning isn't being accounted for correctly or something like that. MuseJazz Text seems to suffer this the worst, but other fonts demonstrate the issue to some extent as well. Sometimes the calculated value is too wide, leading to extra space on the right; other times it is too narrow, leading to text eventually overlapping the edge of the frame. For short texts it isn't a noticeable discrepancy but it adds up over the course of longer texts.

This does not appear to be new with 3.5, I can reproduce with 3.4.2 as well, using MuseJazz Text as well as other fonts.