We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2a7dcd commit a3b7e42Copy full SHA for a3b7e42
1 file changed
src/utils/loadGoogleFont.ts
@@ -4,7 +4,6 @@ async function loadGoogleFont(
4
weight: number
5
): Promise<ArrayBuffer> {
6
const API = `https://fonts.googleapis.com/css2?family=${font}:wght@${weight}&text=${encodeURIComponent(text)}`;
7
-
8
const css = await (
9
await fetch(API, {
10
headers: {
@@ -36,16 +35,16 @@ async function loadGoogleFonts(
36
35
> {
37
const fontsConfig = [
38
{
39
- name: "Source Han Serif",
+ name: "Noto Serif Simplified Chinese",
40
font: "Noto+Serif+SC",
41
weight: 400,
42
style: "normal",
43
},
44
45
46
- font: "Noto+Serif+SC:wght@700",
+ font: "Noto+Serif+SC",
47
weight: 700,
48
- style: "bold",
+ style: "normal",
49
50
];
51
0 commit comments