Add option to scale frames with spatium, or independently #23852
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves: #12685
This PR adds a checkbox to frame's properties which allows the user to switch off scaling height, width, and gap above/below/left/right by spatium. Frames scale by spatium by default except for the title frame, which does not. When this option is unticked, the property values refer to the default spatium of about 1.75mm.
The PR also changes the 'Gap above/below/left/right' properties to be represented as
Spatium
internally (moving away fromMillimetre
). These values now behave in the same way as height/width with respect to staff scaling, as would have been expected beforehand. This shouldn't have an effect on file reading/writing as they were converted to spatium at these points anyway. This change accounts for the slight vtest differences, as allMillimetre
values were 0.992x the size they should have been.The large amount of utest changes are down to the difference in default value of "Scale with staff size" between pre 4.4 scores which are being read, and 4.4 scores which are being written.