Skip to content

Commit bd9b7ce

Browse files
committed
review comments
1 parent e903717 commit bd9b7ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/timesigglyph.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export class TimeSignatureGlyph extends Glyph {
7575
height = Math.max(height, botGlyph.getMetrics().height);
7676
}
7777

78+
// If the height of the digits is more than two staff spaces (20), shift to the next line
79+
// in order to center the digits on lines 1 and 5 rather than 2 and 4.
7880
this.lineShift = height > 20 ? 1 : 0;
7981

8082
this.width = Math.max(topWidth, botWidth);

0 commit comments

Comments
 (0)