$ account Chlumsky
This repository is a high-quality C++ library and command-line tool for generating signed distance fields (SDFs) from vector shapes, including font glyphs and SVG paths. It supports conventional single-channel SDFs, perpendicular distance fields, multi-channel SDFs (MSDF) for sharp corner preservation, and combined MTSDF with an additional true distance channel. The architecture is modular: a dependency-free core library implements all key data structures (Shape, Contour, edges, bitmap, distance transformation) and algorithms (distance computation, edge coloring, error correction). An extensions layer provides font loading via FreeType, SVG parsing via TinyXML2 or dropXML, PNG output via libpng or LodePNG, and optional geometry preprocessing via Skia. The standalone executable wraps all functionality into a comprehensive CLI with many configuration options. The code is well-structured, performant (supports OpenMP parallelization), and actively maintained with regular releases and a detailed changelog. While the core is purely numerical, the extensions introduce external dependencies, but the project provides build presets and vcpkg integration for easy compilation.