typekit/webfontloader

How to load typekit with display=swap parameter?

CrossOrigin88 opened this issue · 1 comments

I would like to make it load typekit with parameter 'display=swap'.

As i know. Google fonts will do like this

WebFont.load({
                google: {
                  families: [
                      'Roboto:400,700&display=swap'
                  ]
                },
                active: () => {
                    sessionStorage.fontsLoaded = true
                },
            });

How about typekit?

WebFontConfig = {
  typekit: {
    id: 'xxxxxx'
  }
};

I'm not sure about typekit, anyone know?

Can this be set within the project settings in Adobe Fonts?

See https://helpx.adobe.com/fonts/using/font-display-settings.html