5 releases (3 breaking)
Uses new Rust 2024
| 0.3.0 | Feb 7, 2026 |
|---|---|
| 0.2.0 | Feb 2, 2026 |
| 0.1.1 | Feb 1, 2026 |
| 0.1.0 | Feb 1, 2026 |
| 0.0.1 | Jan 31, 2026 |
#604 in Audio
Used in verovioxide
1MB
292 lines
verovioxide-data
Bundled SMuFL fonts and resources for verovioxide.
Overview
This crate provides the SMuFL music fonts and resource files required by Verovio. It's automatically included as a dependency of verovioxide when the bundled-data feature is enabled (default).
Most users don't need to use this crate directly.
Included Fonts
| Font | Feature | Default | Description |
|---|---|---|---|
| Leipzig | font-leipzig |
Yes | Default Verovio font, traditional engraving style |
| Bravura | font-bravura |
No | Reference SMuFL font by Steinberg |
| Gootville | font-gootville |
No | Handwritten style font |
| Leland | font-leland |
No | MuseScore's default font |
| Petaluma | font-petaluma |
No | Handwritten jazz style font |
Note: Bravura baseline data is always included as it's required for Verovio's glyph name table.
Features
[dependencies]
# Default: Leipzig font only
verovioxide-data = "0.3"
# Specific fonts
verovioxide-data = { version = "0.3", features = ["font-bravura", "font-leland"] }
# All fonts
verovioxide-data = { version = "0.3", features = ["all-fonts"] }
Usage
use verovioxide_data::{resource_dir, available_fonts};
// Extract resources to a temporary directory
let dir = resource_dir()?;
println!("Resources at: {}", dir.path().display());
// List available fonts
for font in available_fonts() {
println!("Font: {}", font);
}
Related Crates
verovioxide- High-level safe Rust APIverovioxide-sys- Raw FFI bindings
License
This project is licensed under the Apache License 2.0.
SMuFL fonts have their own licenses:
- Leipzig: SIL Open Font License
- Bravura: SIL Open Font License
- Gootville: SIL Open Font License
- Leland: SIL Open Font License
- Petaluma: SIL Open Font License
Dependencies
~2–8MB
~172K SLoC