Expand description
SMuFL font and resource files for the Verovio music notation engraver.
Verovio refuses to parse any input until Resources::Ok() returns true,
which requires the font data on disk at the path passed to
Toolkit::SetResourcePath. This crate bundles the resource tree at compile
time and offers extract to stage it onto a real filesystem so Verovio
can read it.
The bundled contents are an exact mirror of the data/ directory in the
Verovio source tree pinned by the verovio-sys crate. Both Bravura
(mandatory) and Leipzig (eager-loaded) are included, plus the optional
Gootville, Leland, Petaluma, and Liberation fonts.
Constants§
- AVAILABLE_
FONTS - SMuFL font families bundled in this crate, as Verovio’s
fontoption understands them. Useful for populating a font picker in a UI without hard-coding the list at the call site. - DATA
- Bundled resource directory — a compile-time snapshot of Verovio’s
data/.
Functions§
- extract
- Extract all bundled resource files into
dest. The destination is expected to already exist (e.g. a freshly-created tempdir). Any files already present at the same paths are overwritten.