Skip to main content
CSS is fun and cool and I like it.
Link

Developing a robust font loading strategy for CSS-Tricks

Link

Google Fonts is Adding font-display

Article

Typography for Developers

This is intended as a practical guide for developers to learn web typography. We’ll cover a range of practical and useful topics, like how to choose and use custom fonts on the web, but more importantly, how to lay text out to create a pleasant user experience. We’ll go over the principles of typography and the CSS properties that control them, as well as handy tips to get good results, quickly.
Article

Fighting FOIT and FOUT Together

Lots from Divya with the setup:

There are 2 kinds of problems that can arise when using webfonts; Flash of invisible text (FOIT) and Flash of Unstyled Text (FOUT) ... If we were to compare them, FOUT is of course the lesser of the two evils

If you wanna fight FOIT, the easiest tool is the font-display CSS property. I like the optional value because I generally dislike the look of fonts swapping.… Read article

Article

Google Fonts and font-display

Hey! This whole article is about a time before May 2019 in which Google Fonts didn't offer a way to use font-display without self-hosting the fonts.

To use font-display with Google Fonts, you include a URL parameter like &display=swap in the URL, like https://fonts.googleapis.com/css?family=Open+Sans&display=swap. If you're copying code from Google Fonts now, it's the default, so you get it automatically, but you might want to add it if you have existing URLs to Google fonts lingering around, or you want … Read article