majodev / google-webfonts-helper

A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
https://gwfh.mranftl.com
MIT License
12.02k stars 420 forks source link

Add `font-display` #69

Closed thejimbirch closed 1 year ago

thejimbirch commented 5 years ago

On Google's Web Fundamentals - Web Font Optimization page, they recommend using font-display:

font-display: auto; /* or block, swap, fallback, optional */

To ensure consistency moving forward, the CSS Working Group has proposed a new @font-face descriptor, font-display, and a corresponding property for controlling how a downloadable font renders before it is loaded.

Thanks for a great tool!

konfuzed commented 5 years ago

In fact, even just having the default auto entry (and a linked note about why to use it and how) would go a long way to help teach folks, too. And yes, wonderful tool thank you!

SilasReinagel commented 4 years ago

This would be a very nice feature to have!

Can we get this PR merged?

JayHoltslander commented 4 years ago

+1

vieregg-jfc commented 3 years ago

+1

cseas commented 3 years ago

+1 Can someone tag the maintainers here? @majodev