Spacing of lyrics lines too tight after export of parts
I have several lines of lyrics that are ok when first entered, but after exporting the parts to pdf the spacing between the lines is too tight. It can be corrected by 'reset style', but then after the next export the spacing is wrong again. The problem occurs with several scores, all of which were created from the standard 'grand staff' template. I am attaching a screenshot and an example score.
reply from Marc Sabatella:
"I can confirm. My guess is the problem has to do with having made the top staff small in the piano part, somewhere that setting is confusing the export of the score. Interesting bug! Can you report this officially in the issue tracker (eg, via Help / Report a Bug, from within MuseScore)? Be sure yo give steps to reproduce the problem. I did by using File / Export Parts and then looking at the "score and parts" PDF file. It looked messed up, and then so did the score itself until I made any edit that forced a relayout."
Steps:
1. prepare score with two or more lines of lyrics (see attached file). As Marc said, it may be important to have a small staff in one of the parts in orde to reproduce the behavior
2. exit musescore
3. open the score again: lyrics spacing is wrong
4. "reset style": spacing is correct
5. file/export parts --> lyrics spacing is wrong again
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.2.5315, revision: a8b90a8
Attachment | Size |
---|---|
Op_de_adem_van_de_Geest.mscz | 32.55 KB |
Image 1.png | 42.01 KB |
Comments
Works fine for me, when exporting the parts of this score to PDF
The two parts are fine, the score export (the file labeled "Score_and_Parts") is bad, starting at bar 11. Both in the PDF output and then in the score itself, until you do something that forces a full relayout.
The unusual thing about this score is that one staff is full size in the score but then small in one of the parts.
I can reproduce from scratch in a score without small staves at all. Multiple lines of lyrics get squished in any "export parts" operation, it seems.
Problem is that we set MScore::pixelRatio in anticipation of saving the PDF, but we do it too soon, before doing a relayout of the score in page view.
It's an easy fix, but I'm a little concerned that there might turn out to some system dependencies here (on screen resolution or whatever) much like the issues we had text size in image capture. Which is to say, just because my fix works for me, I can't guarantee it works for everyone.
Also, I see we set pdfPrinting before the layout, which seems unwise even if isn't actually used except during drawing. And Score::print() was going to do that for us anyhow. So I'm inclined to remove that while I'm at it, but again, I don't fully understand what this is dong (some sort of font substitution/embedding in sym.cpp I guess).
Here's my actual code, which again does work fine for me:
https://github.com/musescore/MuseScore/pull/4748
In reply to Problem is that we set… by Marc Sabatella
The issue also occurs when swapping from page view to continuous view.
Win 10; 64 bit; Ver 3.0.2.5315.
Sample file attached
I don't see a file attached, but can't reproduce in my own score. I suspect you are talking something else - the spacing between the lyric liens is fine, but the spacing of the staves is not adjusting, This is a known deliberate decision with some possibility that the situation may change - see #282579: Continuous view needs space for lyrics
came up again in #285210: When "Exporting Parts..." (in PDF), lyrics lines are crunched. including a sample score
Fixed in branch master, commit 5f579c36a8
_fix #284069: lyrics lines are respaced during export parts
fix #283523: correct orientation for each part in score+parts export_
Fixed in branch master, commit 37408701e1
_Merge pull request #4748 from MarcSabatella/284069-lyric-spacing
fix #284069: lyrics lines are respaced during export parts_
Fixed in branch 3.0.5, commit 391cc8fdfe
_Merge pull request #4748 from MarcSabatella/284069-lyric-spacing
fix #284069: lyrics lines are respaced during export parts_
Automatically closed -- issue fixed for 2 weeks with no activity.