Show HN: QR code renderer in a TrueType font

4 days ago (qr.jim.sh)

In the "Libre Barcode Project" discussion yesterday, 1bpp asked: "Is anyone willing to sacrifice their sanity for the sake of implementing a QR renderer as TTF hinting code?"

Yes. I had some tokens to burn and was curious... turns out, it's possible. This was put together by a mix of Gemini, GPT, and Claude (depending on which usage limits kept running out).

Side question: Why is nobody making QR codes on web pages clickable (regardless if it’s an image or text-based)? Not every QR code represents a URL, of course, but many do. Maybe there should be a qrcode URL scheme that lets browsers behave the same way as a camera scanning a QR code.

This is absolute black magic. I never realized OpenType rules were powerful enough to render something as complex as a QR matrix inline.

Selecting parts of the code (in F7 mode or with SHIFT-LEFT/RIGHT) highlights which individual pixels corresponds to the actual letters.

Impressive work!

Not mentioned is the fact that the resulting QR Fonts are huge --- much larger than the javascript needed to render a QR code.