4 ms·
I don't think you can enumerate them these days, but you can test for them by trying to use them in CSS (which font is used would affect the width of a span of
by tangent128 10y ago
I don't think you can enumerate them these days, but you can test for them by trying to use them in CSS (which font is used would affect the width of a span of text, use a wildly different fallback font and you can guess which is installed) or <canvas> (where you can inspect the actual pixels rendered).
- Freak_NL 10y agoOr use @font-face and detect calls to a remote URL — which happens when the named local font is missing: @font-face { font-family: "Roboto"; src: local("Roboto"), url("https://example.com/user-does-not-have-roboto") format("woff2"); }