Skip to content

Commit

Permalink
Fix pre-3.x scores' dynamic symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Nov 9, 2022
1 parent 9e70891 commit 3f9abaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/engraving/libmscore/textbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,11 +790,15 @@ mu::draw::Font TextFragment::font(const TextBase* t) const
String family;
draw::Font::Type fontType = draw::Font::Type::Unknown;
if (format.fontFamily() == "ScoreText") {
if (t->isDynamic() || t->textStyleType() == TextStyleType::OTTAVA) {
if (t->textStyleType() == TextStyleType::OTTAVA) {
family = SymbolFonts::fontByName(t->score()->styleSt(Sid::MusicalSymbolFont))->family();
fontType = draw::Font::Type::MusicSymbol;
// to keep desired size ratio (based on 20pt symbol size to 10pt text size)
m *= 2;
} else if (t->isDynamic()) {
family = t->score()->scoreFont()->fontByName(t->score()->styleSt(Sid::MusicalTextFont).replace(u" Text", u""))->family();
// to keep desired size ratio (based on 20pt symbol size to 10pt text size)
m *= 2;
} else if (t->isTempoText()) {
family = t->score()->styleSt(Sid::MusicalTextFont);
fontType = draw::Font::Type::MusicSymbolText;
Expand Down

0 comments on commit 3f9abaf

Please sign in to comment.