-
Notifications
You must be signed in to change notification settings - Fork 3
Write liquescent via nc@curve #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
7d091c9
30563af
dab41c5
20b839b
20833fe
7d83623
8e29c70
8c9835a
e28d1c7
693985b
1161805
02ab823
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,7 +177,7 @@ void View::DrawNc(DeviceContext *dc, LayerElement *element, Layer *layer, Staff | |
params.at(0).fontNo = SMUFL_E997_chantPunctumVirgaReversed; | ||
} | ||
|
||
else if (nc->GetCurve() == curvatureDirection_CURVE_c) { | ||
else if (nc->GetCurve() == curvatureDirection_CURVE_c && nc->FindDescendantByType(LIQUESCENT)) { | ||
params.at(0).fontNoLiq[0] = SMUFL_E9BE_chantConnectingLineAsc3rd; | ||
params.at(0).fontNoLiq[1] = SMUFL_EB92_staffPosRaise3; | ||
params.at(0).fontNoLiq[2] = SMUFL_E995_chantAuctumDesc; | ||
|
@@ -187,7 +187,7 @@ void View::DrawNc(DeviceContext *dc, LayerElement *element, Layer *layer, Staff | |
params.at(0).yOffsetLiq[0] = -1.5; | ||
params.at(0).yOffsetLiq[4] = -1.75; | ||
} | ||
else if (nc->GetCurve() == curvatureDirection_CURVE_a) { | ||
else if (nc->GetCurve() == curvatureDirection_CURVE_a && nc->FindDescendantByType(LIQUESCENT)) { | ||
params.at(0).fontNoLiq[0] = SMUFL_E9BE_chantConnectingLineAsc3rd; | ||
params.at(0).fontNoLiq[1] = SMUFL_EB98_staffPosLower1; | ||
params.at(0).fontNoLiq[2] = SMUFL_E994_chantAuctumAsc; | ||
|
@@ -274,7 +274,9 @@ void View::DrawNc(DeviceContext *dc, LayerElement *element, Layer *layer, Staff | |
} | ||
|
||
// Draw the children | ||
this->DrawLayerChildren(dc, nc, layer, staff, measure); | ||
if (!nc->FindDescendantByType(LIQUESCENT)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Normally we always render child elements individually. So if the encoding is: <nc>
<liquescent/>
</nc> We expect the liquescent to be drawn in a call to <g class="nc">
<g class="liquescent"/>
</g> This is important if you have editorial markup: <nc>
<add>
<liquescent/>
</add>
</nc> Which then becomes: <g class="nc">
<g class="add">
<g class="liquescent"/>
<g/>
</g> Which allows (for example) to highlight what has been added. This would be missing with your implementation because |
||
this->DrawLayerChildren(dc, nc, layer, staff, measure); | ||
} | ||
|
||
dc->EndGraphic(element, this); | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.