Show HN: QR code renderer in a TrueType font
5 days ago
- #OpenType Shaping
- #Text Rendering
- #QR Code Font
- Jim's TrueType QR Code Font is a real TrueType/OpenType font that converts bracketed text into QR codes through text shaping, eliminating the need for separate image generation or preprocessing.
- Users can type text like [hello], apply the font, and the built-in OpenType rules render it as a QR code, which remains as text for copying, pasting, storing in plain text, or mixing inline with regular Latin text.
- A browser line-wrapping note warns that layout engines may split QR codes across lines if there are break opportunities; to avoid this, wrap bracketed blocks in containers styled with white-space: nowrap; or display: inline-block; for reliable HTML rendering.
- The font is available for download in versions labeled QR Font 1-L, QR Font 2-L, and QR Font 3-L, and there is a source repository for further exploration.