I am trying to use the new nuxt fonts module for my font
I use the following setup to load my fonts from file, can someone tell me what could be the issue with this config? As my site looks like this (Image 1), so it's only using the first font, because when moving for example the thin one to the top every text is thin.
9 Replies
GitHub
Issues · nuxt/fonts
Plug-and-play web font optimization and configuration for Nuxt apps. - Issues · nuxt/fonts
The issue is that you should only have one entry per family, but we need to provide a better way for you to specify the weights -> filename mapping.
Perfect thank you! Looking forward to the fix/ update 😄
Thanks for the fast fix, tho for some reason I can't get it working on my side, I tried updating the packages, using
npm update
and manually increasing the @nuxt/fonts
package version to 0.0.2
, then after not working I tried reinstalling all the packages so removing the node_modules
folder as well as the package-lock
file and running npm i
again. But for some reason all my fonts stay at the black weight. Did I make any obvious mistakes?
My config still looks like this:
I will send my packages in the next message because of the length limit.And my package.json:
You should drop all the separate entries in fonts families. Nuxt Fonts should detect it automatically.
Whoa thanks for that fix, I love this community & Framework ❤️
you are welcome ❤️
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View