Skip to content

Commit

Permalink
coda reduced in StaveRepetition
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed May 2, 2023
1 parent 2e1031b commit 2628c4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/staverepetition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class Repetition extends StaveModifier {

static TEXT_FONT: Required<FontInfo> = {
family: Font.SERIF,
size: 12,
size: Tables.NOTATION_FONT_SCALE / 3,
weight: FontWeight.BOLD,
style: FontStyle.NORMAL,
};
Expand Down Expand Up @@ -192,7 +192,9 @@ export class Repetition extends StaveModifier {
this.y_shift +
Tables.currentMusicFont().lookupMetric('staveRepetition.symbolText.offsetY');
if (draw_coda) {
Glyph.renderGlyph(ctx, symbol_x, y, 40, 'coda', { category: 'coda' });
Glyph.renderGlyph(ctx, symbol_x, y, Font.convertSizeToPointValue(this.textFont?.size) * 2, 'coda', {
category: 'coda',
});
}

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

0 comments on commit 2628c4c

Please sign in to comment.