rishi-raj-jain / astro-font

`astro-font` will automatically optimize your Custom Fonts, Local Fonts, Fonts over any CDN and Google fonts for performance.
https://www.launchfa.st/features/astro-font
MIT License
119 stars 4 forks source link

Use `fallback` property in development mode #23

Open selipso opened 2 months ago

selipso commented 2 months ago

I'm not sure if this happens in production builds or not, but I noticed that when developing offline using a Google Fonts url as a font, the astro compiler throws an error instead of using the fallback default sans-serif font.

Steps to reproduce:

Expected behavior:

rishi-raj-jain commented 1 month ago

@selipso

That's a use case I definitely did not think of!

You're totally correct though.

Let me think of something by the weekend.