We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a19a185 commit 4931457Copy full SHA for 4931457
.changeset/slick-eggs-laugh.md
@@ -0,0 +1,5 @@
1
+---
2
+'astro': patch
3
4
+
5
+Fixes `fontProviders.google()` so it can forward options to the unifont provider, when using the experimental fonts API
packages/astro/src/assets/fonts/providers/index.ts
@@ -34,9 +34,10 @@ function fontsource() {
34
// This provider downloads too many files when there's a variable font
35
// available. This is bad because it doesn't align with our default font settings
36
/** [Google](https://fonts.google.com/) */
37
-function google() {
+function google(config?: Parameters<typeof providers.google>[0]) {
38
return defineAstroFontProvider({
39
entrypoint: 'astro/assets/fonts/providers/google',
40
+ config,
41
});
42
}
43
0 commit comments