Merge 3e9be39851b26f966ea26d92050d4ac68e24728d into 4e4930ef9c2e2ddb9bcb1436660d3a3002c19844

This commit is contained in:
Aaron Pham 2025-01-24 05:56:37 +02:00 committed by GitHub
commit 2a1e58ebda
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()