Live data from Hacker News

When Fonts Fall

figma.com

41–42 of 42 posts

Re: When Fonts Fall

#41
post #40

Earlier quoted context omitted.

This is generally a bad idea for accessibility reasons: • Screen readers won’t be able to do anything with it; • Some mobile users especially will turn off web font loading; • Even if custom fonts are enabled, it’s not terribly uncommon for them to fail to load for any number of reasons; • It’s best for performance if you can do something like `font-display: optional` or `font-display: fallback`; but if you are actua…

Sure, but all of those negatives are also true of the thing you’d use in place of a private-use codepoint: an inline-reflowed image. Private-use codepoints at least have the advantage over inline images of being “opaquely” copy-and-paste-able into other documents, machine-read, etc. Any system that works in term of Unicode text will pass along the private-use codepoints in the stream, where it might strip higher-leve…

> Sure, but all of those negatives are also true of the thing you’d use in place of a private-use codepoint: an inline-reflowed image.

Not true: your inline image should have alt text, e.g. if ⅌ didn’t exist then you’d use an image of that shape with alt="per". If the image doesn’t load, it’ll be replaced by the word “per”, and screen readers will read it as “per” or “graphic per” or similar (I believe JAWS adds that “graphic” prefix, not sure if you can convince it not to by careful ARIA attributes—or even if you can, whether you should; these things are a bit dangerous to fiddle with).

Alternatively you might use inline SVG, which gets you vector goodness, and can definitely (rather than possibly) be presented to screen readers as the word “per” perfectly.

Another fancy trick is to use ligatures to replace entire words: make your own fancy web font replace the sequence “ per ” with “ ⅌ ”.

Re: When Fonts Fall

#42

Really cool article. But over the past few years/decades, as glyphs have exploded in number, I've been finding myself wanting a totally different system of font definition. I want fonts to be made out of just a handful (at a minimum) of primitives -- e.g. here's a vertical stroke, a horizontal stroke, diagonal strokes, what various serif endings look like, here are what the bowls of letters look like, etc. An entire…

> I want fonts to be made out of just a handful (at a minimum) of primitives -- e.g. here's a vertical stroke, a horizontal stroke, diagonal strokes, what various serif endings look like, here are what the bowls of letters look like, etc.

Tom7, who makes excellent videos about computers, has one about splitting letters up to create anagrams in this way.[0]

All of his videos are technically astounding, like the one where he frankensteined a raspberry pi into a game cartridge to play SNES games on a NES, or the one where he designed and built a computer using IEEE 754 NaN and infinity instead of 0 and 1.

[0] https://www.youtube.com/watch?v=qTBAW-Eh0tM

Post reply on HN