Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load typekit with display=swap parameter? #440

Open
CrossOrigin88 opened this issue Nov 13, 2020 · 1 comment
Open

How to load typekit with display=swap parameter? #440

CrossOrigin88 opened this issue Nov 13, 2020 · 1 comment

Comments

@CrossOrigin88
Copy link

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?

@ghost
Copy link

ghost commented Jun 1, 2021

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant