Fontkit Advanced Font Engine
JSON →Fontkit is an advanced, cross-platform font engine designed for both Node.js and browser environments, currently stable at version 2.0.4. It offers comprehensive support for numerous font formats, including TrueType, OpenType, WOFF, WOFF2, and TrueType Collections. Its core capabilities encompass accurate character-to-glyph mapping, supporting advanced substitution features like ligatures, alongside robust glyph metrics and layout functionalities such as kerning. The library deeply integrates with OpenType (GSUB, GPOS) and Apple Advanced Typography (AAT) features, providing tools for extracting glyph vector paths for SVG conversion, handling color emoji glyphs (via SBIX and COLR tables), and supporting AAT variation glyphs for dynamic design control. A significant differentiator is its efficient font subsetting mechanism, which enables developers to create optimized font files containing only the necessary glyphs. The 2.0.0 release marked a substantial modernization, migrating from Node.js-specific `Buffer` usage to `Uint8Array` and `TextDecoder`, significantly enhancing its browser compatibility and changing the subset encoding API from streaming to a direct `Uint8Array` return. It is notably used as a core component within the PDFKit library.
Traffic · last 30 days ↑500% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany