|
@@ -272,11 +272,16 @@ export abstract class MusicSheetDrawer {
|
|
|
calcResults.ScreenPosition.y = (graphicalLabel.PositionAndShape.Parent.AbsolutePosition.y - 1 + graphicalLabel.PositionAndShape.Parent.BorderBottom ) * 10
|
|
|
}
|
|
|
// 修改 部分文字需要识别为表情符号
|
|
|
- const expressionList = ['ffp', 'p-f', 'sfzp', 'szf']
|
|
|
- if (expressionList.includes(label.text)){
|
|
|
- label.fontStyle = 3
|
|
|
- if (label.text === 'sfzp'){
|
|
|
- label.fontHeight = 2.3
|
|
|
+ const expressionList = ['ffp', 'p-f', 'sfzp', 'szf', 'sffzp']
|
|
|
+ for(let expressionIndex = 0; expressionIndex < expressionList.length; expressionIndex++){
|
|
|
+ const expression = expressionList[expressionIndex].replace(/ /g, '')
|
|
|
+ const _labelText = label.text.replace(/ /g, '')
|
|
|
+ if (_labelText.toLocaleLowerCase() === expression.toLocaleLowerCase() || _labelText.includes(expression)){
|
|
|
+ label.fontStyle = 3
|
|
|
+ if (label.text === 'sfzp'){
|
|
|
+ label.fontHeight = 2.3
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
|