1. Home
  2. Css
  3. Font display

This setting allows you to control the display behaviour of the font. Options - auto, block, swap, fallback, optional.

#css#font
<style>
    @font-face {

        /* Declare font settings here, font-family, style, weight, and source */

        /* Then you can choose from one of the following options */
        font-display: auto;     /* Use default user agent settings */
        font-display: block;    /* This can stop the font flickering but can affect performance */
        font-display: swap;     /* A suggested solution. Good balance between performance and user experience */
        font-display: fallback; /* Prioritises fallback font over the custom font */
        font-display: optional; /* This will use the fallback font */
    }
</style>
copy
Full Css cheatsheet