Skip to content

Load Google Fonts Asynchronously - not loading all weights with css2  #679

Open
@kokers

Description

@kokers

Looks like google fonts are not fully loaded when the embed code uses the new API css2. Only the default weight (400) is being pulled.

Url is build like this:
https://fonts.googleapis.com/css2?family=Manrope:[email protected]&display=swap

Looks like webfontloader doesnt handle css2 correctly. Might need a library update. Found one very old issue still open typekit/webfontloader#430 Not sure when google made a switch, but they generate embed codes now on google fonts with the css2 links.

Old API with links https://fonts.googleapis.com/css?family=Manrope:300,400,600,700,800 work ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions