a tool for shared writing and social publishing

load italic fonts for custom google fonts

+1 -1
+1 -1
src/fonts.ts
··· 119 119 120 120 // Treat as just a font name - construct a basic family param with common weights 121 121 const fontName = trimmed.replace(/\+/g, " "); 122 - const googleFontsFamily = `${trimmed.replace(/ /g, "+")}:wght@400;700`; 122 + const googleFontsFamily = `${trimmed.replace(/ /g, "+")}:ital,wght@0,400;0,700;1,400;1,700`; 123 123 return { fontName, googleFontsFamily }; 124 124 } 125 125