Lyrics lines with vertical offset positioned incorrectly (Linux)

• Nov 10, 2018 - 07:32
S4 - Minor

In the attached score, lyrics lines 2, 4, 6, 8 in the first system are offset vertically by -0.5 (down). The PDF generated by the Linux version of MuseScore shows these lines at the wrong offset -- compare to the PDF generated under Windows. -- The same issue is with PNG (and maybe with SVG, I didn't try it).


Does Dies it look OK for you on screen on your Linux system? I am guessing it is a difference in the font metrics between the systems, with the accented characters likely throwing off the calculation of where the baselines are. Can you try with a sample that doesn't use any accents?

Here is the same score with accents removed. The PDFs, both the first and this, were generated on a Ubuntu 18.04 server, using xvfb as a virtual X11 display, so I can't check how it looks on that system. I opened this MSCZ (which has no accents) in MuseScore on an Ubuntu 18.04 desktop, and it was wrong. And again, it is OK in Windows.
This only occurs with scores in which the lyrics were repositioned (offsets are set to non-zero values). In most scores I make, I don't touch the offsets, and they show correctly under Linux.

Title Lyrics lines with vertical offset positioned incorrectly in PDF/PNG (Linux only) Lyrics lines with vertical offset positioned incorrectly (Linux)

OK, so it sounds like you are saying the issue is not actually about PNG or PDF export, but rendering on Linux in general? Can anyone else on Linux verify? Also, since 2.x is basically done, what about current builds of 3.0?

In reply to by Marc Sabatella

Yes, it looks like it is about rendering on Linux, as the score looks the same in MuseScore and in the export.
Font metrics and everything related to text formatting are default on both Linux systems I used (the server and the desktop), so I expect the issue can be reproduced.

Reported version 2.3  

Using MuseScore 3.5.2 on Windows 10 and Linux (Ubuntu 20.10), the example score's offset lyrics on both platforms are off by quite a large amounts - much worse than in the attached PDF. When the score is opened, you are asked if you want to reset the element positions (the score was created in 2.3.2). Allowing MS to reset the element positions puts the lyrics in their expected locations.

After resetting the element positions, on the windows install, I moved one line of lyrics up and the saved the modified score. When the modifed score is opened in Linux the lyric positions appear in the expected location.