Skip to content

Commit 3def7bb

Browse files
committed
fix Jazz style for chord symbols
1 parent 5888cec commit 3def7bb

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

libmscore/read114.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,11 @@ static void readStyle(MStyle* style, XmlReader& e)
16231623
else if (tag == "ChordList") {
16241624
style->chordList()->clear();
16251625
style->chordList()->read(e);
1626+
for (ChordFont f : style->chordList()->fonts) {
1627+
if (f.family == "MuseJazz") {
1628+
f.family = "MuseJazz Text";
1629+
}
1630+
}
16261631
style->setCustomChordList(true);
16271632
chordListTag = true;
16281633
}

libmscore/read206.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,11 @@ static void readStyle(MStyle* style, XmlReader& e)
11691169
style->chordList()->clear();
11701170
style->chordList()->read(e);
11711171
style->setCustomChordList(true);
1172+
for (ChordFont f : style->chordList()->fonts) {
1173+
if (f.family == "MuseJazz") {
1174+
f.family = "MuseJazz Text";
1175+
}
1176+
}
11721177
chordListTag = true;
11731178
}
11741179
else {

share/styles/chords_jazz.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
=====================================================================
2828
-->
2929

30-
<!-- MuseJazz extensions are already superscripted; this is how much to move them back down -->
30+
<!-- MuseJazz Text extensions are already superscripted; this is how much to move them back down -->
3131
<!ENTITY ext "2.5">
32-
<!-- MuseJazz modifier digits are already superscripted; this is how much to move everything else up to match -->
32+
<!-- MuseJazz Text modifier digits are already superscripted; this is how much to move everything else up to match -->
3333
<!ENTITY mod "4.5">
3434
<!-- this is additional superscripting to apply to modifier digits -->
3535
<!ENTITY modn "1">
@@ -45,7 +45,7 @@
4545
configured text style font family is used.
4646
-->
4747

48-
<font family="MuseJazz">
48+
<font family="MuseJazz Text">
4949

5050
<sym code="0xe180" name="ma"/>
5151
<sym code="0xe181" name="mi"/>
@@ -96,7 +96,7 @@
9696

9797
</font>
9898

99-
<font family="MuseJazz">
99+
<font family="MuseJazz Text">
100100
<mag>0.85</mag>
101101

102102
<sym name="("/>
@@ -122,7 +122,7 @@
122122

123123
</font>
124124

125-
<font family="MuseJazz">
125+
<font family="MuseJazz Text">
126126
<mag>1.3</mag>
127127

128128
<sym code="0xe190" name="e0"/>
@@ -141,7 +141,7 @@
141141

142142
</font>
143143

144-
<font family="MuseJazz">
144+
<font family="MuseJazz Text">
145145
<mag>0.75</mag>
146146

147147
<sym value="(" name="s("/>

0 commit comments

Comments
 (0)