Skip to content

Commit

Permalink
字型:Self-hosted LXGW WenKai TC
Browse files Browse the repository at this point in the history
  • Loading branch information
yixiuer committed Oct 29, 2024
1 parent 89aa586 commit 8beaa99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions assets/scss/custom/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
font-style: normal;
}

// /~https://github.com/lxgw/LxgwWenkaiTC
@font-face {
font-family: 'LXGW WenKai TC';
font-display: swap;
src: url('https://cdn.jsdelivr.net/gh/yixiuer/yixiuer.me/static/fonts/LXGWWenKaiTC-Light-v1.501.woff2') format('woff2');
font-weight: 300;
font-style: normal;
}

// /~https://github.com/TypeNetwork/Amstelvar
@font-face {
font-family: 'Amstelvar';
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ uglyURLs = false
fontFamilyBody = "'I.MingCP', serif"

# 網路字型連結
fontsLink = "https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;700&family=Noto+Serif+SC:wght@700&family=LXGW+WenKai+TC:wght@300&display=swap"
fontsLink = "https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;700&family=Noto+Serif+SC:wght@700&display=swap"
# 說明:要想讀者一定體驗到你設定的字型,最好
# 採用網路字型。MemE 主題目前僅支援
# Google Fonts 的連結,請前往
Expand Down
Binary file added static/fonts/LXGWWenKaiTC-Light-v1.501.woff2
Binary file not shown.

0 comments on commit 8beaa99

Please sign in to comment.