nuxt / fonts

Plug-and-play web font optimization and configuration for Nuxt apps.
https://fonts.nuxt.com
MIT License
380 stars 4 forks source link

Variable Fonts? #74

Closed jiblett1000 closed 2 months ago

jiblett1000 commented 2 months ago

Does this module support variable fonts? It works with the google-fonts module, but I would be interested in switching to this module at some point if variable font support is added.

danielroe commented 2 months ago

We do already have some support for variable fonts though I think this can be improved.

jiblett1000 commented 2 months ago

Thanks! I'm not looking for anything too fancy at this point. Just so long as I can specify a range like I'm able to in the google fonts module. Like so:

  googleFonts: {
    families: {
      Inter: {
        wght: "100..900",
      },
    },
  },
qwerzl commented 2 months ago

Since #99, variable fonts should be automatically served for google provider if one is available regardless of your config. You can wait for the next release.

qwerzl commented 2 months ago

This is now up in v0.6.0, closing this issue.