#sdf #protobuf #fonts

pbf_font_tools

Tools for working with SDF font glyphs encoded in protobuf format

9 releases (3 stable)

1.0.2 Apr 13, 2021
1.0.1 Feb 18, 2021
0.3.0 Dec 29, 2020
0.2.2 Jul 8, 2020
0.1.1 Nov 30, 2018

#6 in Data formats

Download history 3/week @ 2021-01-11 8/week @ 2021-01-18 2/week @ 2021-01-25 7/week @ 2021-02-01 10/week @ 2021-02-08 75/week @ 2021-02-15 30/week @ 2021-02-22 36/week @ 2021-03-01 13/week @ 2021-03-08 16/week @ 2021-03-15 25/week @ 2021-03-22 36/week @ 2021-03-29 38/week @ 2021-04-05 73/week @ 2021-04-12 25/week @ 2021-04-19 13/week @ 2021-04-26

103 downloads per month
Used in build_pbf_glyphs

BSD-3-Clause

185KB
201 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


lib.rs:

PBF Font Tools

Tools for working with SDF font glyphs in PBF format.

This crate lets you combine multiple glyphs from multiple fonts into a single stack. Generating glyphs from a TrueType/OpenType font (a la node-fontnik) is planned for a future release.

References

Dependencies

~3.5–5MB
~98K SLoC