Live data from Hacker News

Show HN: QR code renderer in a TrueType font

qr.jim.sh

1–10 of 19 posts

Show HN: QR code renderer in a TrueType font

#1
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).

Show HN: QR code renderer in a TrueType font
qr.jim.sh

Re: Show HN: QR code renderer in a TrueType font

#8
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.

Re: Show HN: QR code renderer in a TrueType font

#9
post #3

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

Font shaping rules are actually turing complete. An incredible amount of engineering effort has gone into this not being a total disaster everywhere at all times.

Re: Show HN: QR code renderer in a TrueType font

#10
post #3

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

It’s basically Turing-complete: https://simoncozens.github.io/fonts-and-layout/features.html

Once something is Turing-complete, the magic turns from black to white. ;)

Post reply on HN