Skip to content

Commit

Permalink
fix: 修改英文默认字体为Time new man,此字体展示公式更美观
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jan 1, 2023
1 parent a19b367 commit 42e4c1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 3 additions & 5 deletions assets/style.css
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Terwer . All rights reserved.
* Copyright (c) 2022-2023, Terwer . All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -58,10 +58,8 @@ a:hover {
}

:root {
--g-font-family: "JetBrains Mono", "LXGW WenKai", "-apple-system",
"Wenquanyi Micro Hei", "Wenquanyi Micro Hei Mono", "Microsoft YaHei",
"PT Sans", "Liberation Mono", monospace, dejavu sans mono, Fira Code,
Microsoft Yahei, Consolas, Courier New, monospace, Menlo, Monaco;
--g-font-family: "Times New Roman", "LXGW WenKai", "JetBrains Mono",
"-apple-system", "Microsoft YaHei", "方正北魏楷书_GBK";
font-family: var(--g-font-family) !important;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
Expand Down
12 changes: 11 additions & 1 deletion assets/webfont.css
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Terwer . All rights reserved.
* Copyright (c) 2022-2023, Terwer . All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -2216,3 +2216,13 @@
U+30e3-30e7, U+30e9-30ed, U+30ef, U+30f3, U+30fb-30fc, U+4e00, U+4e2d,
U+65b0, U+65e5, U+6708-6709, U+70b9, U+7684, U+7f51, U+ff0c, U+ff0e, U+ff1a;
}

/* Times New Roman */
@font-face {
font-family: times new roman;
font-style: normal;
font-weight: 400;
src: local("Times New Roman"),
url(https://static-rs-terwer.oss-cn-beijing.aliyuncs.com/lib/fonts/times/times.woff)
format("woff");
}

0 comments on commit 42e4c1d

Please sign in to comment.