andermatt64 / sdf_font_tools

Rust tools for working with SDF font glyphs in PBF format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDF Font Tools

This is a collection of complementary crates for converting fonts into signed distance fields and combining the results into MapLibre-compatible font stacks. Refer to the individual crate READMEs for more details.

  • build_pbf_glyphs - CLI tool to crunch a directory fonts into PBF files you can host statically
  • pbf_font_tools - Library exposing high level interfaces for generating glyphs from TTF/OTF fonts and combining glyphs from multiple fonts into fontstacks.
  • sdf_glyph_renderer - Library crate for converting SDF glyphs from an arbitrary bitmap (alpha map).

About

Rust tools for working with SDF font glyphs in PBF format.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 99.2%Language:Just 0.8%