Styles are badly applied in converter mode
Style files are not correctly applied when running Musescore3 in converter mode (command line).
Step to reproduce :
1) use Musescore to save a style file with a custom page size.
2) create a new score with no styles applied.
3) use the command line to convert the score to pdf or png using the style
option.
When exporting to png or svg, the style seems to be ignored.
When exporting to pdf, the page style is applied but is not taken into account during the formatting, making the score override the page size.
musescore3 -S xxs.mss -o score.png score.mscz
convert score.mscz...
using style xxs.mss
to score.svg
... success
When I convert to another musescore file, the styles are correctly applied.
musescore3 -S xxs.mss -o score-styled.mscz score.mscz
convert score.mscz...
using style xxs.mss
to score-styled.mscz
... success
It means creating an intermediary musescore file every time is a working workaround, although not a very practical one.
Tried using Musescore-3.4.2.
Note: the #102421: Command line interface ignores style when exporting to PDF issue seems related.
Attachment | Size |
---|---|
score.mscz | 7.07 KB |
score-1.png | 102.13 KB |
score.pdf | 11.33 KB |
score-styled.mscz | 15.82 KB |
score-styled-1.png | 72.15 KB |
Comments
To me this is not just related to, but a duplicate of #102421: Command line interface ignores style when exporting to PDF. Seems the -S option is only taking effect on msc[xz] conversion (which is mention in that bother issue)
But see also #269491: Text styles not applied by command line option -S, which claims it to not even work on mscz conversion?
Hi @Jojo-Schmitz. Thank you for your reply.
You are right, this issue looks like a duplicate.
Why should styles not be applied on other formats, though? Furthermore, styles are definitely applied (but badly) to pdf export. See the
score.pdf
attachment.So the issue could be resolved by one of those solutions:
* apply styles before exporting to new file format (to me, the most logical) ;
* ignore style files for all formats but .mscz, but make it exlicit in the documentation and maybe display a warning in the command line.
I don't know what is the original intended behavior.
I believe the original intention is to apply these style files only to the MuseScore formats.