Skip to content

stadiamaps/sdf_font_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1cd94bb · Jun 14, 2024
Jun 14, 2024
Feb 13, 2024
Jun 14, 2024
Feb 13, 2024
Jul 5, 2023
Feb 13, 2024
Feb 13, 2024
Jul 5, 2023
Jul 14, 2023
Jul 15, 2023
Jul 9, 2023

Repository files navigation

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).