frontend: tweak custom fonts

This commit is contained in:
fly_mc 2024-11-19 22:28:55 +08:00
parent e72bf3eedf
commit eb5b3e4683
3 changed files with 18 additions and 4 deletions

View file

@ -1,4 +1,18 @@
html.default-font-lxgw-marker-gothic {
@import url("https://chinese-fonts-cdn.deno.dev/packages/lxgwmanhei/dist/LXGWMarkerGothic/result.css");
font-family: "LXGW Marker Gothic", 'Lexend', Roboto, HelveticaNeue, Arial, sans-serif;
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'LXGW Marker Gothic"';
font-style: normal;
font-weight: 400;
src: url('/static-assets/fonts/LXGWMarkerGothic-Regular.ttf') format('woff2');
}
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'jf-openhuninn';
font-style: normal;
font-weight: 400;
src: url('/static-assets/fonts/jf-openhuninn-2.1.woff2') format("woff2");
}
html.default-font-lxgw-marker-gothic {
font-family: "LXGW Marker Gothic", 'Lexend', 'jf-openhuninn', Roboto, HelveticaNeue, Arial, sans-serif;
}

View file

@ -1,5 +1,5 @@
html.default-font-lxgw-wenkai {
@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css");
@import url("https://testingcf.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css");
font-family: "LXGW WenKai", "Times New Roman", Times, serif;
&[lang="zh-WY"],
&[lang="zh-TW"] {