Skip to content

Commit 0fb8f4f

Browse files
committed
point fixed on MultiMeasureRest and TextDynamics
1 parent 660856f commit 0fb8f4f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/fonts/common_metrics.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ export const CommonMetrics = {
239239
digits: {
240240
// used by TimeSignature objects
241241
shiftLine: -1,
242-
point: 39,
243242

244243
// used by tuplets
245244
tupletPoint: 22,
@@ -401,7 +400,6 @@ export const CommonMetrics = {
401400
},
402401
},
403402
textNote: {
404-
point: 39,
405403
breathMarkTick: {
406404
shiftY: 9,
407405
},

src/multimeasurerest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class MultiMeasureRest extends Element {
106106
use_symbols: false,
107107
show_number: true,
108108
number_line: -0.5,
109-
number_glyph_point: musicFont.lookupMetric('digits.point'), // same as TimeSignature.
109+
number_glyph_point: musicFont.lookupMetric('digits.point') ?? Tables.NOTATION_FONT_SCALE, // same as TimeSignature.
110110
line: 2,
111111
spacing_between_lines_px: Tables.STAVE_LINE_DISTANCE, // same as Stave.
112112
serif_thickness: 2,

src/textdynamics.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import { Glyph } from './glyph';
55
import { Note } from './note';
6+
import { Tables } from './tables';
67
import { TextNoteStruct } from './textnote';
78
import { Category } from './typeguard';
89
import { defined, log, RuntimeError } from './util';
@@ -78,7 +79,7 @@ export class TextDynamics extends Note {
7879
this.line = noteStruct.line || 0;
7980
this.glyphs = [];
8081

81-
this.render_options = { ...this.render_options, glyph_font_size: 40 };
82+
this.render_options = { ...this.render_options, glyph_font_size: Tables.NOTATION_FONT_SCALE };
8283

8384
L('New Dynamics Text: ', this.sequence);
8485
}

0 commit comments

Comments
 (0)