2 ms·
Custom font is sensible fwiw. You can have a font with a single glyph implemented and you’ll override just that glyph, falling back to other fonts for the non i
by AnotherGoodName 2y ago
Custom font is sensible fwiw. You can have a font with a single glyph implemented and you’ll override just that glyph, falling back to other fonts for the non implemented glyphs. This is why sites often have a list of fonts and not just one in the css. It’s also how other languages are supported. No Thai chars in your font? We just fall back until we hit a font with those glyphs available (might be an os level font rather than a site specified font but that’s fine).
I’d hate to try and hack a “intercept the text and add an image” type of system when the font rendering system has a trivial way to override individual glyphs already.
- londons_explore 2y ago> This is why sites often have a list of fonts Doesn't that mean every font in the list needs to be loaded? And surely in many cases the sets of glyphs overlap and then a bunch of network bandwidth has been wasted?
- AnotherGoodName 2y agoThe ones that are single/small subset glyph are fine since it’s a few bytes and very cacheable and then the others in the list are usually the well known font types “arial” etc. which don’t even need the site to supply a new font file (you can specify fonts in css with a file or simply a name of a common font/font family). So no real issue at all.