Skip to content

Commit a3b7e42

Browse files
fix: font issues
1 parent a2a7dcd commit a3b7e42

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/utils/loadGoogleFont.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ async function loadGoogleFont(
44
weight: number
55
): Promise<ArrayBuffer> {
66
const API = `https://fonts.googleapis.com/css2?family=${font}:wght@${weight}&text=${encodeURIComponent(text)}`;
7-
87
const css = await (
98
await fetch(API, {
109
headers: {
@@ -36,16 +35,16 @@ async function loadGoogleFonts(
3635
> {
3736
const fontsConfig = [
3837
{
39-
name: "Source Han Serif",
38+
name: "Noto Serif Simplified Chinese",
4039
font: "Noto+Serif+SC",
4140
weight: 400,
4241
style: "normal",
4342
},
4443
{
45-
name: "Source Han Serif",
46-
font: "Noto+Serif+SC:wght@700",
44+
name: "Noto Serif Simplified Chinese",
45+
font: "Noto+Serif+SC",
4746
weight: 700,
48-
style: "bold",
47+
style: "normal",
4948
},
5049
];
5150

0 commit comments

Comments
 (0)