Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/engraving/rendering/score/slurtielayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include "tremololayout.h"

#include "draw/types/transform.h"
#include "global/stringutils.h"

using namespace muse::draw;
using namespace mu::engraving;
Expand Down Expand Up @@ -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) {
Expand Down
Loading