git commit ID that this library was built from.
version number.
Used with vexflow-core which supports dynamic font loading.
Examples:
Vex.Flow.setMusicFont('Petaluma');
Vex.Flow.setMusicFont('Bravura', 'Gonville');
CASE 1: You are using vexflow.js
, which includes all music fonts (Bravura, Gonville, Petaluma, Custom).
In this case, calling this method is optional, since VexFlow already defaults to a music font stack of:
'Bravura', 'Gonville', 'Custom'.
CASE 2: You are using vexflow-bravura.js
or vexflow-petaluma.js
or vexflow-gonville.js
,
which includes a single music font. Calling this method is unnecessary.
CASE 3: You are using the light weight vexflow-core.js
to take advantage of lazy loading for fonts.
In this case, the default music font stack is empty.
Example:
await Vex.Flow.fetchMusicFont('Petaluma');
Vex.Flow.setMusicFont('Petaluma');
... (do VexFlow stuff) ...
See demos/fonts/
for more examples.
an array of Font objects corresponding to the provided fontNames
.
The date when this library was compiled.