files/en-us/web/css/reference/at-rules/@font-face/font-display/index.md
The font-display descriptor for the {{cssxref("@font-face")}} at-rule determines how a font face is displayed based on whether and when it is downloaded and ready to use.
/* Keyword values */
font-display: auto;
font-display: block;
font-display: swap;
font-display: fallback;
font-display: optional;
auto
block
swap
fallback
optional
[!NOTE] In Firefox, the preferences
gfx.downloadable_fonts.fallback_delayandgfx.downloadable_fonts.fallback_delay_shortprovide the duration of the "short" and "extremely small" periods, respectively.
The font display timeline is based on a timer that begins the moment the user agent attempts to use a given downloaded font face. The timeline is divided into the three periods below which dictate the rendering behavior of any elements using the font face:
{{cssinfo}}
{{csssyntax}}
@font-face {
font-family: "ExampleFont";
src:
url("/path/to/fonts/example-font.woff") format("woff"),
url("/path/to/fonts/example-font.eot") format("embedded-opentype");
font-weight: normal;
font-style: normal;
font-display: fallback;
}
{{Specifications}}
{{Compat}}