Live data from Hacker News

Jim's TrueType QR Code Font

github.com

21–30 of 31 posts

Re: Jim's TrueType QR Code Font

#21
post #15

Earlier quoted context omitted.

Did you read the explanation? It says right there on the page why it happens. Or was that text added since you viewed it?

I probably didn’t read it. But I also had to read it twice to understand what it meant. I’m still not sure if this is the mentioned issue or a different one.

Just glancing I would say it seems a bit different.

Re: Jim's TrueType QR Code Font

#22
post #9

Unfortunately the most important thing here is missing - the whole explanation, like how did we get there, what those fonts can do and so on..

OpenType specification is Turing complete, its hinting engine does math during rasterization and its GSUB (Glyph Substitution, a layout and shaping engine) does glyph stacking, QR code correction, etc to finalize the QR. The nice thing about it is if you copy and paste it, it goes to the original text.

This doesn't use hinting. Some reasons why are listed at: https://github.com/jimparis/qr-font/blob/master/design.md#wh...

Re: Jim's TrueType QR Code Font

#23
post #9

Unfortunately the most important thing here is missing - the whole explanation, like how did we get there, what those fonts can do and so on..

OpenType specification is Turing complete, its hinting engine does math during rasterization and its GSUB (Glyph Substitution, a layout and shaping engine) does glyph stacking, QR code correction, etc to finalize the QR. The nice thing about it is if you copy and paste it, it goes to the original text.

What a vector (no pun intended) for malware or other computation…

Re: Jim's TrueType QR Code Font

#25
post #3

It doesn’t seem to like spaces that much, the code for [QR coded] is broken for me on safari ios. When the space is removed it’s a working qrcode again

It looks like Safari doesn't render this correctly (checked on macOS). Works fine in Chrome and Firefox, though. Must be a Safari quirk of some kind.

Re: Jim's TrueType QR Code Font

#26
post #4

Impressive, but on iOS 27 even one of the examples don't work. Seems like it has an issue with spaces. https://imgur.com/a/tZGqtjR

Checked on my phone, Chrome+Firefox work, WebKit (through wpe-android) doesn't. Safari and WebKit can't render this font for some reason, I suppose.

Re: Jim's TrueType QR Code Font

#27
post #24

This ... means the page could render a QR code for humans while letting bots see the actual URL. That is incredibly cool.

Or with some tweaks to the font code they could see a different URL…

This could be used for good (diverting bots away from where you don't want them) or evil (different destinations for user and other readers of the page could be used to trick people going to undesirable locations, because the apparent URL checks out find according to automated scanners).

Re: Jim's TrueType QR Code Font

#30
post #24

This ... means the page could render a QR code for humans while letting bots see the actual URL. That is incredibly cool.

Conventional web technologies already can handle this kind of use case, either by wrapping an image in a link tag, or using an alt= value.
Post reply on HN