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

fix: continue if font family doesn't match in `getFontDetails` #88

Closed qwerzl closed 2 months ago

qwerzl commented 2 months ago

Just a simple fix; this PR modifies getFontDetails so that it continues the loop instead of break if font family doesn't match because the input CSS might have font families other than the requested one. This fixes the "Could not produce font face declaration from adobe for font family Barlow Semi Condensed." error in the playground as I have multiple fonts in that kit.