Skip to content

Commit

Permalink
📝 docs: 修改字体链接
Browse files Browse the repository at this point in the history
  • Loading branch information
luren-dc committed Dec 29, 2024
1 parent db05cb8 commit 9bd6ea2
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 4 deletions.
137 changes: 135 additions & 2 deletions docs/css/font.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,137 @@
/* lxgw-wenkai-latin-300-normal */
@font-face {
font-family: "LXGW WenKai";
font-style: normal;
font-display: auto;
font-weight: 300;
src:
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-300-normal.woff2)
format("woff2"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-300-normal.woff)
format("woff"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-300-normal.ttf)
format("truetype");
}

/* lxgw-wenkai-latin-400-normal */
@font-face {
font-family: "LXGW WenKai";
font-style: normal;
font-display: auto;
font-weight: 400;
src:
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-400-normal.woff2)
format("woff2"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-400-normal.woff)
format("woff"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-400-normal.ttf)
format("truetype");
}

/* lxgw-wenkai-latin-500-normal */
@font-face {
font-family: "LXGW WenKai";
font-style: normal;
font-display: auto;
font-weight: 500;
src:
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-500-normal.woff2)
format("woff2"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-500-normal.woff)
format("woff"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-500-normal.ttf)
format("truetype");
}

/* lxgw-wenkai-latin-700-normal */
@font-face {
font-family: "LXGW WenKai";
font-style: normal;
font-display: auto;
font-weight: 700;
src:
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-700-normal.woff2)
format("woff2"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-700-normal.woff)
format("woff"),
url(https://cdn.jsdelivr.net/fontsource/fonts/lxgw-wenkai@latest/latin-700-normal.ttf)
format("truetype");
}

/* jetbrains-mono-latin-wght-normal */
@font-face {
font-family: "JetBrains Mono Variable";
font-style: italic;
font-display: auto;
font-weight: 100 800;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/latin-wght-italic.woff2)
format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* jetbrains-mono-cyrillic-wght-normal */
@font-face {
font-family: "JetBrains Mono Variable";
font-style: italic;
font-display: auto;
font-weight: 100 800;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/cyrillic-wght-italic.woff2)
format("woff2-variations");
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* jetbrains-mono-cyrillic-ext-wght-normal */
@font-face {
font-family: "JetBrains Mono Variable";
font-style: italic;
font-display: auto;
font-weight: 100 800;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/cyrillic-ext-wght-italic.woff2)
format("woff2-variations");
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,
U+FE2E-FE2F;
}

/* jetbrains-mono-latin-ext-wght-normal */
@font-face {
font-family: "JetBrains Mono Variable";
font-style: italic;
font-display: auto;
font-weight: 100 800;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/latin-ext-wght-italic.woff2)
format("woff2-variations");
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* jetbrains-mono-greek-wght-normal */
@font-face {
font-family: "JetBrains Mono Variable";
font-style: italic;
font-display: auto;
font-weight: 100 800;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/greek-wght-italic.woff2)
format("woff2-variations");
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,
U+03A3-03FF;
}

/* jetbrains-mono-vietnamese-wght-normal */
@font-face {
font-family: "JetBrains Mono Variable";
font-style: italic;
font-display: auto;
font-weight: 100 800;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono:vf@latest/vietnamese-wght-italic.woff2)
format("woff2-variations");
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
--md-text-font: "JetBrains Mono", "LXGW WenKai Screen";
--md-code-font: "JetBrains Mono", "Noto Serif SC";
--md-text-font: "JetBrains Mono Variable", "LXGW WenKai";
--md-code-font: "JetBrains Mono Variable", "Noto Serif SC";
}
2 changes: 0 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ extra:
extra_css:
- css/font.css
- css/scheme.css
- https://cdn.tonycrane.cc/jbmono/jetbrainsmono.css
- https://cdn.tonycrane.cc/lxgw/lxgwscreen.css
- https://fonts.loli.net/css2?family=Noto+Serif+SC&display=swap

markdown_extensions:
Expand Down

0 comments on commit 9bd6ea2

Please sign in to comment.