Re:Responsive bar charts in HTML and CSS
by inbx0 on Saturday July 13, 2024 @08:27AM
(#40953685)
You could embed your web font inline to the stylesheet, as base64 encoded data url.
Your page loading times will obviously take a hit, but that'll give you pretty close to 100% certainty that the font will be used, should you want that.
[ Parent
| on HN ]
Re:Responsive bar charts in HTML and CSS
by chrismorgan on Monday July 15, 2024 @04:28AM
(#40966134)
That resolves one of the main causes of failure, and I generally speak very highly of inlining everything—it has very noticeable performance benefits up to surprisingly large sizes (generally well over 100KB).
Aside, pairing application/font-woff2 with charset=utf-8 makes no sense. It’s a binary encoding.
But I think you’d still be surprised how many browser configurations don’t load web fonts, though I’m sure it’s becoming less common.