From 38c9913ed0b0429d4f4438b86532d92577048cae Mon Sep 17 00:00:00 2001 From: LolipopJ <42314340+LolipopJ@users.noreply.github.com> Date: Thu, 26 Dec 2024 01:01:21 +0800 Subject: [PATCH] docs(README.md): fix custom font cdn url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 416ed0c3..bd937b8b 100644 --- a/README.md +++ b/README.md @@ -278,7 +278,7 @@ z=\dfrac{3\pi}{2}(1+2t)\sin(\dfrac{3\pi}{2}(1+2t)), & custom_font: enable: true name: 'Noto Sans SC:n3,n4,n5,n7' - url: 'https://fonts.googleapis.cnpmjs.org/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap' + url: 'https://cdn.jsdelivr.net/npm/fontsource-noto-sans-sc@4.0.0/chinese-simplified.css' ``` 其中,`name` 为引入的自定义字体名称,`:` 后跟字体变体和字重,不同的变体和字重使用 `,` 间隔。例如 `name: 'Noto Sans SC:i5,n7'` 表示引入 `Noto Sans SC` 的斜体 500 字重和正常 700 字重。