Skip to content

Commit

Permalink
point fixed on MultiMeasureRest and TextDynamics
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Mar 19, 2023
1 parent 660856f commit 0fb8f4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/fonts/common_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ export const CommonMetrics = {
digits: {
// used by TimeSignature objects
shiftLine: -1,
point: 39,

// used by tuplets
tupletPoint: 22,
Expand Down Expand Up @@ -401,7 +400,6 @@ export const CommonMetrics = {
},
},
textNote: {
point: 39,
breathMarkTick: {
shiftY: 9,
},
Expand Down
2 changes: 1 addition & 1 deletion src/multimeasurerest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class MultiMeasureRest extends Element {
use_symbols: false,
show_number: true,
number_line: -0.5,
number_glyph_point: musicFont.lookupMetric('digits.point'), // same as TimeSignature.
number_glyph_point: musicFont.lookupMetric('digits.point') ?? Tables.NOTATION_FONT_SCALE, // same as TimeSignature.
line: 2,
spacing_between_lines_px: Tables.STAVE_LINE_DISTANCE, // same as Stave.
serif_thickness: 2,
Expand Down
3 changes: 2 additions & 1 deletion src/textdynamics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import { Glyph } from './glyph';
import { Note } from './note';
import { Tables } from './tables';
import { TextNoteStruct } from './textnote';
import { Category } from './typeguard';
import { defined, log, RuntimeError } from './util';
Expand Down Expand Up @@ -78,7 +79,7 @@ export class TextDynamics extends Note {
this.line = noteStruct.line || 0;
this.glyphs = [];

this.render_options = { ...this.render_options, glyph_font_size: 40 };
this.render_options = { ...this.render_options, glyph_font_size: Tables.NOTATION_FONT_SCALE };

L('New Dynamics Text: ', this.sequence);
}
Expand Down

0 comments on commit 0fb8f4f

Please sign in to comment.