mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 14:34:23 +02:00
Merge 3e9be39851b26f966ea26d92050d4ac68e24728d into fbc45548f7ee80715ec74d8c249c662a26f7feae
This commit is contained in:
commit
ea624a7142
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user