-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertical spacing with line breaks and above-line text #533
Comments
I noticed, while I was adding the variable line height implementation, that gregorio was only setting spaces below the line at the start of a score. Though this didn't seem congruent with manual line breaks, not knowing any better, I just assumed that was the correct behavior. What you see appears to be consistent with what I saw (though, in my case, it wasn't with the above line text height). As for me, I would think that the space should be added regardless of whether there is a manual line break, but I don't know if this was done intentionally for some reason or is just an oversight. As @rpspringuel is intimately familiar with the spacing code, he might be the best person to answer the question of intention. |
Thinking about this more, I'm beginning to feel that:
What does everyone think? Does this sound correct? Or should above lines text and translation text be considered "outside" the staff and be allocated space uniformly, regardless of expansion mode? Or is there a better way? |
Agreed! |
I most certainly agree. Since most of the hard work was done for #59 it makes sense to have all the lines taken into account in |
I agree as well. Frankly, I never realized this was a problem because my work on the spacing code had more to do with how spaces were stored and used rather than in when they were calculated and/or used. |
Variable line height algorithm now includes translation and above lines text spaces in the computation. Uniform line height algorithm now adds translation and above lines text spaces to all lines uniformly. Fixes gregorio-project#533.
The fix in #534 is ready for review. |
In a score with manual line breaks and above-line text, the vertical spacing between the bottom of the 'lyric' line and the top of the above-line text of the next line can be inconsistent. It seems that in this case, the distance
abovelinestextheight
is added to all the lines with above-line text, except for the first line past the manual line break.(Here
abovelinestextheight
is set to 1 cm to emphasize the difference)In the case of a score with no manual line breaks, it seems
abovelinestextheight
is not added at all.I'm not sure what the correct behavior should be (with or without the added space).
I have noticed this for some time, so I don't think it is a behavior introduced recently, but the testing I did just now was using build
54a3036
from the develop branch.The text was updated successfully, but these errors were encountered: