@font-face {
            font-family: 'MyFont';
            src: url('font.woff2') format('woff2');
            font-weight: 400;
            font-style: normal;
            font-display: swap;
          }