mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-19 06:54:18 +02:00
Compare commits
2 Commits
17cea82cf5
...
2a1e58ebda
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2a1e58ebda | ||
![]() |
3e9be39851 |
@ -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