Skip to content

Commit

Permalink
docs(README.md): fix custom font cdn url
Browse files Browse the repository at this point in the history
  • Loading branch information
LolipopJ committed Dec 25, 2024
1 parent 6ae7964 commit 38c9913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]/chinese-simplified.css'
```

其中,`name` 为引入的自定义字体名称,`:` 后跟字体变体和字重,不同的变体和字重使用 `,` 间隔。例如 `name: 'Noto Sans SC:i5,n7'` 表示引入 `Noto Sans SC` 的斜体 500 字重和正常 700 字重。
Expand Down

0 comments on commit 38c9913

Please sign in to comment.