方正黑体大小太大了,换思源黑体

This commit is contained in:
JohnathanLin 2023-12-15 22:47:08 +08:00
parent 3ccb4c0038
commit 46e05f0a2c
5 changed files with 17 additions and 13 deletions

0
.hugo_build.lock Normal file
View File

View File

@ -96,7 +96,7 @@ body:not(.dark) #sun {
font-family: "stratum2";
src: url("/stratum2-medium-webfont.ttf");
}
@font-face {
/* @font-face {
font-family: "fangzhengheiti";
src: url("/FZHTJW.ttf");
}
} */

View File

@ -34,6 +34,7 @@
.post-content {
color: var(--content);
font-family: 'Times New Roman', 'Noto Serif SC' !important;
}
.post-content h3,

View File

@ -22,7 +22,7 @@ h6 {
}
body {
font-family: 'stratum2', 'fangzhengheiti', /*'Noto Serif SC',*/ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-family: 'stratum2', 'Open Sans', 'Microsoft Yahei',/*'Noto Serif SC',*/ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 18px;
line-height: 1.6;
word-break: break-word;

View File

@ -1,23 +1,26 @@
<style>
:root {
/* :root {
--sys-font-family: "Noto Serif SC";
--zh-font-family: "Noto Serif SC";
--base-font-family: "Noto Serif SC";
--code-font-family: "Noto Serif SC";
--article-font-family: "Noto Serif SC";
}
} */
</style>
<script>
(function () {
const customFont = document.createElement("link");
customFont.href =
"https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap";
customFont.type = "text/css";
customFont.rel = "stylesheet";
document.head.appendChild(customFont);
const notoSerifFont = document.createElement("link");
notoSerifFont.href = "https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap";
notoSerifFont.type = "text/css";
notoSerifFont.rel = "stylesheet";
document.head.appendChild(notoSerifFont);
const notoSansFont = document.createElement("link");
notoSansFont.href = "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&&display=swap";
notoSansFont.type = "text/css";
notoSansFont.rel = "stylesheet";
document.head.appendChild(notoSansFont);
})();
</script>