@@ -17,6 +17,10 @@ function L(...args: any[]) {
17
17
if ( NoteHead . DEBUG ) log ( 'Vex.Flow.NoteHead' , args ) ;
18
18
}
19
19
20
+ export interface NoteHeadMetrics {
21
+ minPadding ?: number ;
22
+ displacedShiftX ?: number ;
23
+ }
20
24
export interface NoteHeadStruct extends NoteStruct {
21
25
line ?: number ;
22
26
glyph_font_scale ?: number ;
@@ -217,7 +221,7 @@ export class NoteHead extends Note {
217
221
const displacementStemAdjustment = Stem . WIDTH / 2 ;
218
222
const musicFont = Tables . currentMusicFont ( ) ;
219
223
const fontShift = musicFont . lookupMetric ( 'notehead.shiftX' , 0 ) * this . stem_direction ;
220
- const displacedFontShift = musicFont . lookupMetric ( 'noteHead.displaced.shiftX ' , 0 ) * this . stem_direction ;
224
+ const displacedFontShift = musicFont . lookupMetric ( 'noteHead.displacedShiftX ' , 0 ) * this . stem_direction ;
221
225
222
226
return (
223
227
x +
@@ -290,7 +294,7 @@ export class NoteHead extends Note {
290
294
drawSlashNoteHead ( ctx , this . duration , head_x , y , stem_direction , staveSpace ) ;
291
295
} else {
292
296
Glyph . renderGlyph ( ctx , head_x , y , glyph_font_scale , this . glyph_code , {
293
- category : `noteHead.standard. ${ categorySuffix } ` ,
297
+ category : `noteHead.${ categorySuffix } ` ,
294
298
} ) ;
295
299
}
296
300
}
0 commit comments