From 0654ea2e41bc7eef4ea26b68c5d79f384b4f5d20 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 10 Mar 2026 13:03:58 -0400 Subject: [PATCH] load italic fonts for custom google fonts --- src/fonts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fonts.ts b/src/fonts.ts index ce8520f5..51ff632f 100644 --- a/src/fonts.ts +++ b/src/fonts.ts @@ -119,7 +119,7 @@ export function parseGoogleFontInput(input: string): { // Treat as just a font name - construct a basic family param with common weights const fontName = trimmed.replace(/\+/g, " "); - const googleFontsFamily = `${trimmed.replace(/ /g, "+")}:wght@400;700`; + const googleFontsFamily = `${trimmed.replace(/ /g, "+")}:ital,wght@0,400;0,700;1,400;1,700`; return { fontName, googleFontsFamily }; } -- 2.51.2