|
@@ -68,9 +68,12 @@ export class VexFlowMusicSheetCalculator extends MusicSheetCalculator {
|
|
|
|
|
|
// prepare Vexflow font (doesn't affect Vexflow 1.x). It seems like this has to be done here for now, otherwise it's too slow for the generateImages script.
|
|
|
// (first image will have the non-updated font, in this case the Vexflow default Bravura, while we want Gonville here)
|
|
|
- if (this.rules.DefaultVexFlowNoteFont === "gonville") {
|
|
|
+ if (this.rules.DefaultVexFlowNoteFont?.toLowerCase() === "gonville") {
|
|
|
(Vex.Flow as any).DEFAULT_FONT_STACK = [(Vex.Flow as any).Fonts?.Gonville, (Vex.Flow as any).Fonts?.Bravura, (Vex.Flow as any).Fonts?.Custom];
|
|
|
- } // else keep new vexflow default Bravura (more cursive, bold)
|
|
|
+ } else if (this.rules.DefaultVexFlowNoteFont?.toLowerCase() === "petaluma") {
|
|
|
+ (Vex.Flow as any).DEFAULT_FONT_STACK = [(Vex.Flow as any).Fonts?.Petaluma, (Vex.Flow as any).Fonts?.Gonville, (Vex.Flow as any).Fonts?.Bravura];
|
|
|
+ }
|
|
|
+ // else keep new vexflow default Bravura (more cursive, bold)
|
|
|
}
|
|
|
|
|
|
protected clearRecreatedObjects(): void {
|