diff --git a/src/engraving/rendering/score/slurtielayout.cpp b/src/engraving/rendering/score/slurtielayout.cpp index 2a552541b5f4..7f33b50c0fa5 100644 --- a/src/engraving/rendering/score/slurtielayout.cpp +++ b/src/engraving/rendering/score/slurtielayout.cpp @@ -52,6 +52,7 @@ #include "tremololayout.h" #include "draw/types/transform.h" +#include "global/stringutils.h" using namespace muse::draw; using namespace mu::engraving; @@ -406,7 +407,8 @@ void SlurTieLayout::slurPos(Slur* item, SlurTiePos* sp, LayoutContext& ctx) // Gonville and MuseJazz have really weirdly-shaped hooks compared to Leland and Bravura and Emmentaler, // so we need to adjust the slope of our hook-avoidance line. this will be unnecessary when hooks have // SMuFL anchors - bool bulkyHook = ctx.engravingFont()->name() == "Gonville" || ctx.engravingFont()->name() == "MuseJazz"; + const std::string fontName = muse::strings::toLower(ctx.engravingFont()->name()); + bool bulkyHook = fontName == "gonville" || fontName == "musejazz"; const double fakeCutoutSlope = bulkyHook ? 1.5 : 1.0; if (item->endCR() == 0) {