NuxtN
Nuxt3mo ago
5 replies
ianjamieson

nuxt/fonts - font-display:auto/swap for Adobe

I am looking for some guidance on the nuxt/fonts module. I have these versions:

"@nuxt/fonts": "^0.11.0",
"nuxt": "^4.1.2",


And this config:

fonts: {
    families: [
        ...etc
    ],
    adobe: {
      id: ['removed'],
    },
  },


And when I look at my font-face definitions I can only see font-display:auto;

My question, how can I set this to swap?

I note in the basic tests:

https://github.com/nuxt/fonts/blob/92337090c7f5d2ed5606dd9525e0c0970f8e42a9/test/basic.test.ts#L21-L35

That adobe provider will render as font-display:auto, but any other provider would have the swap value, is there a reason for this?
GitHub
Plug-and-play web font optimization and configuration for Nuxt apps. - nuxt/fonts
fonts/test/basic.test.ts at 92337090c7f5d2ed5606dd9525e0c0970f8e42a...
Was this page helpful?