glyphore
MapLibre glyph PBF generation for Rust, with a native command-line interface.
CLI
The complete commands are:
glyphore build <fonts-dir> -o <out-dir> [--skip-invalid]
glyphore info <font-file> [--json]
build writes each font's covered 256-codepoint ranges below a directory named
with its internal fontstack name. --skip-invalid reports and excludes fonts
that cannot be parsed. info --json prints the extracted font metadata as JSON.
Rust API
The library target re-exports the glyph API from glyphore-core. To use the
API without compiling the CLI dependency, disable default features:
Or add it to Cargo.toml:
[]
= { = "0.1.0", = false }
use ;
Features
cli(default): builds theglyphoreexecutable and enables argument parsing withclap.- With default features disabled, only the Rust library API and
glyphore-coredependency remain.
Generated PBF files contain data derived from the source font. Check the font's license before redistributing them.
License
Licensed under either Apache-2.0 or MIT, at your option.