3 ms·
One problem with this approach is when you're relying on web fonts for Unicode character ranges which aren't universally supported by your visitors’ OS. A comp
by acdha 10y ago
One problem with this approach is when you're relying on web fonts for Unicode character ranges which aren't universally supported by your visitors’ OS.
A compromise approach which can work nicely is declaring @font-face values using unicode-range to target specific language blocks and then having your font-family be something like 'sans-serif, noto-sans-whatever` so it'll default to a similar system font but load the webfont when the page actually has a character which isn't in the system font.
- heywire 10y agoI'm surprised that browser vendors aren't including the more popular fonts.
- acdha 10y agoIt'd be something else to manage updates for and the base OS support is pretty good on modern releases. These days, the gaps I see are for fairly obscure languages and since webfonts solve that problem and can do conditional downloads, I doubt it's worth the trouble.
- glandium 10y agoA font that supports all Unicode is larger than a browser installer.
- saghm 10y agoAnd even worse, you have to download the font every time you load a different page using it, whereas you only have to download the browser once
- colejohnson66 10y agoCitation? All the DejaVu fonts total about 5 megabytes[0] and they have pretty impressive coverage[1]. What are they missing? [0]: http://dejavu-fonts.org/wiki/Download http://dejavu-fonts.org/wiki/Download [1]: http://dejavu-fonts.org/wiki/PDF_samples http://dejavu-fonts.org/wiki/PDF_samples
- glandium 10y agoDejaVu fonts are far from covering Unicode. They don't have any Chinese, Japanese or Korean characters, for a starter.