Text Rendering Toolkit is a strict TypeScript, ESM-only package family for turning font bytes and Unicode text into renderer-ready data:
@text-rendering-toolkit/fontparses caller-owned font bytes, shapes text, and returns numeric glyph outlines.@text-rendering-toolkit/layoutprepares multilingual text and produces positioned glyphs, lines, carets, selections, bounds, and decorations.@text-rendering-toolkit/sdfconverts numeric outlines into deterministic one-channel signed-distance-field bitmaps without a browser or GPU.@text-rendering-toolkit/three-webgpurenders completed layouts with Three.jsWebGPURenderer.
Each package is independently useful. The runtime dependency direction is:
font → layout ─┐
├→ three-webgpu → three
sdf ───────────┘
The SDF package also accepts font outlines structurally without importing the font package at runtime.
Choose only the boundaries your application needs:
pnpm add @text-rendering-toolkit/font
pnpm add @text-rendering-toolkit/layout
pnpm add @text-rendering-toolkit/sdf
pnpm add @text-rendering-toolkit/three-webgpu threeThe first public package family is versioned together at 0.1.x. Its APIs are tested through
packed, isolated consumers, but remain pre-1.0 and may change between minor releases.
See the documentation source and each package README for API examples and ownership rules. Architecture, validation evidence, and project direction live in ARCHITECTURE.md, docs/validation, and ROADMAP.md.
pnpm install
pnpm check
pnpm release:candidateMIT © 2026 Julia Ortiz