Font doesn't automatically update itself after loading style
Steps to reproduce:
* Open a score of choice (e.g. the Get Started-score)
* Go to Style->Text
and change one or more fonts (for example the font of the title)
* Save style
* Restart MuseScore
* Re-open the score
* Load the style
* Changed fonts don't display as they should (but in Style->Text
they still have the new values)
Comments
Confirmed. I would have sworn this worked at one point and am surprised to see it not working now, but it's broken in both 2.0.2 and current builds.
If you select a text element and press "Reset text to Style" in the Inspector, the change does take effect.
Possibly related to or the cause for #102421: Command line interface ignores style when exporting to PDF
Very possible, since that's how I stumbled on this bug.
For me (I just pulled and built it), opening the same score results in having the changed font display (without needing to load the style), however, loading another style only changes the values but not the display (as in the report). I'd like to look at this more in depth if possible.
https://github.com/musescore/MuseScore/pull/2523
Fixed in branch master, commit 7d3b017f60
fix #102716: text isn't correctly updated when loading style
Fixed in branch master, commit 18f512980f
Merge pull request #2523 from syrma/load-style-bug
fix #102716: text isn't correctly updated when loading style
Fixed in branch 2.0.4, commit a823ba5a5a
fix #102716: text isn't correctly updated when loading style
Automatically closed -- issue fixed for 2 weeks with no activity.
Still active in 2.1. Reopened because of #183946: Change in Style > General causes loss of all customised staff text properties
Reported again at https://www.facebook.com/groups/musescore/permalink/1962855670407408/.
TextStyle::restyle() is the function I was thinking of in my comment at https://musescore.org/en/node/183946#comment-687151. We use it a few other places to get a similar effect. I'll look into whether it can do what we need here.
See https://github.com/musescore/MuseScore/pull/3223
This appears to do what it should, and it doesn't break #183946: Change in Style > General causes loss of all customised staff text properties. Please help me test and verify this behaves as you expect too.
{duplicate)
Fixed in branch 2.2, commit 8197d11f27
fix #102716: update text on load style
Fixed in branch 2.2, commit e01d26e084
Merge pull request #3223 from MarcSabatella/102716-load-text-style-update
fix #102716: update text on load style
Automatically closed -- issue fixed for 2 weeks with no activity.