Merge 3e9be39851b26f966ea26d92050d4ac68e24728d into fbc45548f7ee80715ec74d8c249c662a26f7feae

This commit is contained in:
Aaron Pham 2025-02-03 18:50:53 +09:00 committed by GitHub
commit ea624a7142
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()