Skip to content

Commit 09539a4

Browse files
authored
Merge pull request #1554 from rvilarl/point/coda
Coda
2 parents 9912dff + 2628c4c commit 09539a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/fonts/common_metrics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ export const CommonMetrics = {
344344
// Details in Glyph.lookupFontMetrics.
345345
glyphs: {
346346
coda: {
347-
point: 20,
348347
shiftX: -7,
349348
shiftY: 8,
350349
},

src/staverepetition.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class Repetition extends StaveModifier {
1515

1616
static TEXT_FONT: Required<FontInfo> = {
1717
family: Font.SERIF,
18-
size: 12,
18+
size: Tables.NOTATION_FONT_SCALE / 3,
1919
weight: FontWeight.BOLD,
2020
style: FontStyle.NORMAL,
2121
};
@@ -192,7 +192,9 @@ export class Repetition extends StaveModifier {
192192
this.y_shift +
193193
Tables.currentMusicFont().lookupMetric('staveRepetition.symbolText.offsetY');
194194
if (draw_coda) {
195-
Glyph.renderGlyph(ctx, symbol_x, y, 40, 'coda', { category: 'coda' });
195+
Glyph.renderGlyph(ctx, symbol_x, y, Font.convertSizeToPointValue(this.textFont?.size) * 2, 'coda', {
196+
category: 'coda',
197+
});
196198
}
197199

198200
ctx.fillText(text, text_x, y + 5);

0 commit comments

Comments
 (0)