Skip to content

Commit

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

0 comments on commit 7c23839

Please sign in to comment.