From b050162f820c1ef3a75c20b3b1b51e42bb6144aa Mon Sep 17 00:00:00 2001
From: sou7 <17077205+soukouki@users.noreply.github.com>
Date: Thu, 27 Feb 2025 21:37:01 +0000
Subject: [PATCH] docs(frontmatter): mention dealiasing related fields (#1715)
---
quartz/util/og.tsx | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/quartz/util/og.tsx b/quartz/util/og.tsx
index 0430a26..42b9b27 100644
--- a/quartz/util/og.tsx
+++ b/quartz/util/og.tsx
@@ -35,7 +35,9 @@
async function fetchTtf(fontName: string, weight: FontWeight): Promise<ArrayBuffer> {
try {
// Get css file from google fonts
- const cssResponse = await fetch(`https://fonts.googleapis.com/css?family=${fontName}:${weight}`)
+ const cssResponse = await fetch(
+ `https://fonts.googleapis.com/css2?family=${fontName}:wght@${weight}`,
+ )
const css = await cssResponse.text()
// Extract .ttf url from css file
--
Gitblit v1.10.0