Skip to content

Commit 4931457

Browse files
fix(fonts): google config (#13654)
Co-authored-by: ematipico <[email protected]>
1 parent a19a185 commit 4931457

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/slick-eggs-laugh.md

+5
Original file line numberDiff line numberDiff line change
@@ -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

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ function fontsource() {
3434
// This provider downloads too many files when there's a variable font
3535
// available. This is bad because it doesn't align with our default font settings
3636
/** [Google](https://fonts.google.com/) */
37-
function google() {
37+
function google(config?: Parameters<typeof providers.google>[0]) {
3838
return defineAstroFontProvider({
3939
entrypoint: 'astro/assets/fonts/providers/google',
40+
config,
4041
});
4142
}
4243

0 commit comments

Comments
 (0)