What does the CSS property "font-display" control?

  • How much space a font file occupies on the server
  • How quickly a font is loaded and rendered on a web page
  • The color and style of text
  • The size of text
The "font-display" property in CSS controls how web fonts are displayed during loading. It's used to manage the flash of unstyled text (FOUT) or invisible text, making it an essential property for optimizing web font performance. Setting it to "swap" tells the browser to use a system font until the custom font is available, reducing FOUT.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *