File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/astro/src/assets/fonts/providers Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ function fontsource() {
34
34
// This provider downloads too many files when there's a variable font
35
35
// available. This is bad because it doesn't align with our default font settings
36
36
/** [Google](https://fonts.google.com/) */
37
- function google ( ) {
37
+ function google ( config ?: Parameters < typeof providers . google > [ 0 ] ) {
38
38
return defineAstroFontProvider ( {
39
39
entrypoint : 'astro/assets/fonts/providers/google' ,
40
+ config,
40
41
} ) ;
41
42
}
42
43
You can’t perform that action at this time.
0 commit comments