← Back to AI Insights
Gemini Executive Synthesis

TTF-DOOM – A raycaster running inside TrueType font hinting VM.

Technical Positioning
A demonstration of TrueType font hinting VM's Turing-completeness by implementing a DOOM-style raycaster within its bytecode, effectively using the font as a 'weird GPU.'
SaaS Insight & Market Implications
TTF-DOOM is a technical curiosity demonstrating the unexpected computational capabilities of TrueType font hinting VMs. While impressive as a proof-of-concept for Turing-completeness in an unconventional environment, it holds no direct B2B SaaS market implications. This project highlights extreme ingenuity in low-level programming and virtual machine exploitation but does not address commercial pain points, market trends, or offer a scalable product. Its value is purely academic and recreational, showcasing the hidden power within ubiquitous technologies rather than creating a viable business offering.
Proprietary Technical Taxonomy
TrueType font hinting VM raycaster Turing-complete hinting bytecode glyph vertical bar contours GETVARIATION DDA ray marching

Raw Developer Origin & Technical Request

Source Icon Hacker News Apr 7, 2026
Show HN: TTF-DOOM – A raycaster running inside TrueType font hinting

TrueType fonts have a hinting VM that grid-fits glyphs. It has a stack, storage area, conditionals, function calls, and it turns out it's Turing-complete. So I built a raycasting engine in the hinting bytecode.The glyph "A" in the font has 16 vertical bar contours. The hinting program reads player coordinates from font variation axes via GETVARIATION, does DDA ray marching against a tile map in the storage area, and repositions bar heights with SCFS. It ends up looking like a crude Wolfenstein-style view.Small visuzlization: github.com/4RH1T3CT0R7/ttf-d... 6.5 KB of bytecode total - 13 functions, 795 storage slots, sin/cos lookup tables.JS handles movement, enemies, and shooting, then passes the coordinates to the font through CSS font-variation-settings. The font is basically a weird GPU.The weirdest parts:
- TrueType MUL does (ab)/64, not ab. So 1*4=0. The DIV instruction is equally cursed.
- No WHILE loops. Everything compiles to recursive FDEFs. FreeType limits call depth to ~64 frames.
- SVTCA[0] is Y, SVTCA[1] is X. Of course.There's a small compiler behind this - lexer, parser, codegen - that turns a C-like DSL into TT assembly.Demo GIF: github.com/4RH1T3CT0R7/ttf-d... demo: 4rh1t3ct0r7.github.io/ttf-doom/ (Chrome/Edge, WASD+arrows, Space to shoot, Tab for debug overlay)This is a DOOM-style raycaster, not a port of the original engine - similar to DOOMQL and the Excel DOOM. The wall rendering does happen in the font's hinting VM though. Press Tab in the demo to watch the font variation axes change as you move.

Developer Debate & Comments

kevin_thibedeau • Apr 7, 2026
> TrueType MUL does (ab)/64, not abThis is how fixed-point arithmetic works. For multiplication of Q26.6 numbers you clear the squared scaling factors (2^6) by dividing/shifting one of them away.
tadfisher • Apr 6, 2026
You are (or I suspect your LLM is) not correct about Doom using a raycasting engine. Wolfenstein fits that description, yes. Doom rather famously introduced BSP for level data and it draws sorted polygons front-to-back without ray-marching.
tombert • Apr 6, 2026
I tried playing the demo, and it was just green bars for me. The walls didn't scale up or shrink, it was just a bunch of solid static green bars.The enemies did scale up and shrink as I got closer, and the minimap worked.Tried with Brave on Linux, and Google Chrome on macOS.
emanuele-em • Apr 6, 2026
Ok the MUL workaround got me. MUL does (ab)/64 so you have to DIV first to get a64, then MUL finally gives you a*b. And recursive FDEFs because there's no WHILE? All in 6.5KB? What kind of frame rate do you actually get out of this?

Frequently Asked Questions

Market intelligence mapped to TTF-DOOM – A raycaster running inside TrueType font hinting VM..

How is TTF-DOOM – A raycaster running inside TrueType font hinting VM. positioned in the market?
Based on our AI analysis of the original developer request, its primary technical positioning is: A demonstration of TrueType font hinting VM's Turing-completeness by implementing a DOOM-style raycaster within its bytecode, effectively using the font as a 'weird GPU.'
How is the developer community reacting to TTF-DOOM – A raycaster running inside TrueType font hinting VM.?
Yes, we have tracked 12 direct responses and active debates regarding this specific topic originating from Hacker News.
What architecture is tied to TTF-DOOM – A raycaster running inside TrueType font hinting VM.?
Our proprietary extraction maps TTF-DOOM – A raycaster running inside TrueType font hinting VM. to adjacent architectural concepts including TrueType font hinting VM, raycaster, Turing-complete, hinting bytecode.

Engagement Signals

51
Upvotes
12
Comments

Cross-Market Term Frequency

Quantifies the cross-market adoption of foundational terms like JS and functions by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.