Crate pbf_font_tools

source ·
Expand description

§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

Re-exports§

Structs§

Enums§

Functions§

  • Combines a list of SDF font glyphs into a single glyphs message. All input font stacks are flattened into a single font stack containing all the glyphs. The input order indicates precedence. If the same glyph ID is encountered multiple times, only the first will be used.
  • Generates a single combined font stack for the set of fonts provided.
  • Loads a single font PBF slice from disk.