Post #4256706
2026-07-10 06:57 UTC
Another clever little novely font: "Jim's TrueType QR Code Font" turns text into a QR code.
I noticed the QR code is broken in Safari when a space is used. This is because Safari treats the space character differently, seemingly ignoring the metrics or advance width, resulting in a shifted QR code (top line).
I quickly hacked the font to use the § character as an alias for space, and then it works (bottom line)
I wonder if this causes more problems in fonts, or if the space character is so simple that a browser messing with its metrics is inconsequential?
https://qr.jim.sh (via @nedbat)
#typography
Replies (1)
-
@simoncozens@typo.social 2026-07-10 07:14
@pixelambacht@typo.social It can be a pain in Nastaliq when you want to kern across the space. CoreText assumes that the space is not going to change advance width and just uses it everywhere, instead of looking at the results of shaping.