| Crates.io | pbf_font_tools |
| lib.rs | pbf_font_tools |
| version | 3.0.0 |
| created_at | 2018-11-24 11:00:35.385796+00 |
| updated_at | 2025-07-08 05:47:23.162787+00 |
| description | Tools for working with SDF font glyphs encoded in protobuf format. |
| homepage | |
| repository | https://github.com/stadiamaps/sdf_font_tools |
| max_upload_size | |
| id | 98410 |
| size | 408,910 |
This crate contains tools for working with SDF font glyphs in PBF format for use in renderers like Mapbox GL.
If you're looking for a CLI tool to generate PBF ranges en masse like node-fontnik), but faster, check out build_pbf_glyphs.
NOTE: This has been developed and tested against FreeType 2.10. It will work against older versions, but the glyph generation tests may not pass as the rendering evolves over time.
By default, this crate uses a vendored protobuf compiler binary (protoc)
to support the widest number of platforms.
You can disable the default features to opt out of this.
When opted out of the vendored compiler, you can ensure protoc is accessible in any of the following ways:
protoc in your PATH by default.protoc-from-src feature. This will be used instead.protoc that isn't in your PATH, set the PROTOC environment variable during build.