typekit / webfontloader

Web Font Loader gives you added control when using linked fonts via @font-face.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to load typekit with display=swap parameter?

CrossOrigin88 opened this issue · 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