Text styles not applied by command line option -S
When a .MSS style file is applied via command line option -S some text styles are not applied.
To reproduce that: Take the provided files and apply the .mss files by calling MuseScore on the command line:
nightly.exe "Nuages.mscz" -o "Nuages1.mscz" -S _FreeSans.mss
When doing that, title, subtitle, composer and tempo are NOT updated.
When applying the same .mss file by calling "Load Style..." from the menu the mentioned texts are updated correctly. Other style settings work correctly.
The font changes are shown in the text style dialog but not in the score. Changing e.g. the size manually makes also the font change visible.
See also https://musescore.org/en/comment/819328
_FreeSans.mss sets the fonts to FreeSans, Create clef for all systems ON, bar number above the system.
_MuseJazz.mss sets the fonts to MuseJazz, Create clef for all systems OFF, bar number below the system.
https://musescore.org/en/node/118731 is about Load Style... called from the menu (which works now in 2.2 Nightly).
This issue reports a persisting bug in the command line interface which does not work for the text items mentioned above.
Comments
Is this in 2.2 only, or also in 2.1? What about master?
In reply to Is this in 2.2 only, or also… by Jojo-Schmitz
The issue exists also in 2.1 but it is useless to investigate it there without the fix of issue 118731 (which has been fixed in 2.2)
I did not check Master.
so not a regression
In reply to Is this in 2.2 only, or also… by Jojo-Schmitz
I tried to check with Master.
When I try to load the style files that I uploaded I get an error message "The style file is not compatible...". Probably the intended behaviour as the style file format has been changed.
I cannot find the respective style settings in 3.x. Can you please give me a hint where to search?
Came up again in https://musescore.org/en/node/272512
Also in #102421: Command line interface ignores style when exporting to PDF
Could this be due to the order of arguments?
nightly.exe "Nuages.mscz" -o "Nuages1.mscz" -S _FreeSans.mss
vs
nightly.exe -S _FreeSans.mss -o "Nuages1.mscz" "Nuages.mscz"
Came up again in #337506: Batch file conversion with style sheet does not work, is still an issue with MU4.
Seems related to #102421: Command line interface ignores style when exporting to PDF