#font-rendering #sdf #font #protobuf

pbf_font_tools

Tools for working with SDF font glyphs encoded in protobuf format

15 releases (9 stable)

2.5.1 Feb 13, 2024
2.5.0 Jul 15, 2023
2.3.0 Mar 2, 2023
2.2.0 Sep 5, 2022
0.1.1 Nov 30, 2018

#246 in Encoding

Download history 179/week @ 2024-07-23 161/week @ 2024-07-30 140/week @ 2024-08-06 131/week @ 2024-08-13 159/week @ 2024-08-20 141/week @ 2024-08-27 119/week @ 2024-09-03 124/week @ 2024-09-10 69/week @ 2024-09-17 212/week @ 2024-09-24 117/week @ 2024-10-01 62/week @ 2024-10-08 99/week @ 2024-10-15 52/week @ 2024-10-22 125/week @ 2024-10-29 78/week @ 2024-11-05

365 downloads per month
Used in 2 crates

BSD-3-Clause

190KB
291 lines

Rust PBF Font Tools

This crate contains tools for working with SDF font glyphs in PBF format for use in renderers like Mapbox GL.

Features

  • Combine multiple glyphs from multiple fonts into a single stack.
  • Generate glyphs from a TrueType/OpenType font.

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.

References

Dependencies

~4–16MB
~161K SLoC