Show HN: TTF-DOOM – A raycaster running inside TrueType font hinting (github.com)
TTF-DOOM is a small DOOM-style raycasting demo that renders 3D walls by executing a raycaster written in TrueType hinting bytecode inside a .ttf font. The project includes a custom DSL compiler that generates TrueType instructions for raycasting, while browser JavaScript handles controls, enemies, and shooting and passes coordinates into the font via font-variation-settings. A playable font (~6.5 KB) is built into a browser demo that re-hints the glyph each frame to show the perspective effect.
April 07, 2026 01:49
Source: Hacker News