Cloudflare Fonts does not apply Font Display correctly

Happened to try out the new Cloudflare Fonts feature that was recently launched.

I noticed that font display is not being applied correctly.

These are the link hrefs that I am using

https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=block

and

https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=block

The first one applies display=block correctly, while the second does not and applies display=swap instead.

Could it be related to the usage of & in the url? But Google Fonts work properly with &.

1 Like