Glyph Protocol is a new terminal protocol that solves the Nerd Font problem by letting applications register custom vector glyphs directly with the terminal at runtime, eliminating the need for users to install large patched fonts. It uses APC escape sequences with four verbs: support detection (s), codepoint query (q), glyph registration (r), and clear (c). Glyphs are sent as base64-encoded TrueType glyf outlines — a format every terminal already has a rasterizer for — restricted to Unicode Private Use Area codepoints to prevent phishing attacks. The protocol supports up to 1024 simultaneous registrations per session, scales cleanly across DPI levels, and includes a reply= knob for bulk registration. It is already implemented in the Rio terminal (v0.3.12) with example integrations for Bubble Tea, Ratatui, and Ink.

17m read timeFrom rapha.land
Post cover image
Table of contents
Glyph ProtocolWhy this mattersThe shape of the protocolWhy the terminal restricts to PUALanding in Rio

Sort: