Merge 3e9be39851b26f966ea26d92050d4ac68e24728d into 32ec711767401c93605b7631f03eee47dea1cada

This commit is contained in:
Aaron Pham 2025-02-07 21:11:00 +01:00 committed by GitHub
commit 098c2f527f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ async function fetchTtf(fontName: string, weight: FontWeight): Promise<ArrayBuff
try {
// Get css file from google fonts
const cssResponse = await fetch(
`https://fonts.googleapis.com/css2?family=${fontName}:wght@${weight}`,
`https://fonts.googleapis.com/css2?family=${fontName.replace(" ", "+")}:wght@${weight}`,
)
const css = await cssResponse.text()