From 7be47742a6dc86f22d148ca9d304f7a9eea318cf Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 31 Jan 2025 11:46:45 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group across 1 directory with 3 updates (#1744)
---
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