logoalt Hacker News

roger-datocms • today at 2:26 PM • 0 replies • view on HN

Is double-stroked text primarily used for math symbols, or? Might you be able to share an example link or image showing a realistic use case or two? I'd be happy to double-check that our stack can handle it, and amend the post after that with whatever we learn.

Noto actually has a specific math font... I wonder if that would work? https://fonts.google.com/noto/specimen/Noto+Sans+Math

---

Edit: Just to share what I learned after looking into this a bit...

TLDR: No single font can display every character. OpenType fonts are capped at 65535 glyphs (the vector or bitmap shape to render), but Unicode has 150k+ defined characters. Noto itself is not one single font but a collection of them, at least one font per script (where each script might support several natural languages that share the same written characters). CSS's `font-family` fallback and `unicode-range` mechanisms allow us to define "which font should be used for which ranges (and thus which scripts)". We can mix and match several Noto fonts like this to support multiple scripts & languages together. This mechanism should also allow us to display extended math symbols via the separate Noto Sans Math font.