See the attached example.
I have text where there is two text sizes in the text box, and in Engraving Options, “Default position from staff” = 1 spaces.
It looks to me like this algorithm is based on the size of the text at the first character of text, not what is in the last line, resulting in seemingly different spacings from the top of the staff when I have this kind of text size change. I’m not sure how to ‘fix’ this alignment so that all of the text appears the same distance above the staff besides selecting each offending text and manually adding a placement offset.
It also makes me wonder why the decision to refer to “x spaces” above a staff refers to text size and not staff size.