1
1
Fork
You've already forked typkit
0
Basic, personal use case font utilities
  • Zig 100%
Find a file
2026年06月30日 15:04:17 -04:00
src MSDF rasterization: serpentine walk texels for better lookup cache usage 2026年06月02日 17:59:34 -04:00
.gitignore Initialize 2026年05月24日 10:37:27 -04:00
build.zig Add executable for printing debug output 2026年05月28日 20:23:22 -04:00
build.zig.zon Create Zig package 2026年05月24日 12:26:25 -04:00
LICENSE Initialize 2026年05月24日 10:37:27 -04:00
README.md Update README 2026年06月30日 15:04:17 -04:00

typkit is a narrow use case typography library, providing helpers for parsing and rendering certain fonts with certain algorithms.

Current features:

  • The basic .ttf tables (head, cmap format 4, loca, glyf)
  • Native Zig implementation of multi-channel signed distance field rasterization
  • No hard allocation requirements
    • glyf flag data is emitted with an iterator
    • A contour segment iterator, which can directly parse and emit the point indices of each quadratic bezier segment of each contour as it steps through the flag data in one pass
  • 100%, no-dependencies Zig

Still to-do:

  • .otf
  • .woff
  • .woff2
  • .eot

For TrueType, still to-do:

  • name table
  • Composite glyfs
  • kerning, GPOS
  • Ligatures (GSUB)
  • Hinting
  • CFF/OTF outlines
  • Colors, emojis