Skip to content
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

Add option to scale frames with spatium, or independently #23852

Merged
merged 6 commits into from
Aug 12, 2024

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Jul 31, 2024

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 from Millimetre). 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 all Millimetre 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.
Screenshot 2024-07-31 at 13 26 55

@miiizen miiizen force-pushed the 12685-frame-scale branch 2 times, most recently from 609e42c to 19c79ba Compare August 2, 2024 09:47
@miiizen miiizen requested a review from oktophonie August 7, 2024 08:20
@oktophonie oktophonie added the vtests This PR produces approved changes to vtest results label Aug 9, 2024
The default is to scale with spatium for all frames except for the title frame.
Also converts these properties to spatium from millimetre.  This has no effect on file reading and writing, as they were converted anyway
@mike-spa mike-spa merged commit 101db16 into musescore:master Aug 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtests This PR produces approved changes to vtest results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The title frame should not scale with general staff size
3 participants