Skip to content

Commit 74938a4

Browse files
committed
优化字体
整合并添加连字
1 parent b963ba1 commit 74938a4

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

public/fonts/KaTeX_AllInOne.woff2

31.2 KB
Binary file not shown.
-14.8 KB
Binary file not shown.
-23.6 KB
Binary file not shown.
-16.1 KB
Binary file not shown.

src/style.css

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,16 @@ input[type="number"] {
2828
outline: none;
2929
}
3030

31-
@font-face {
32-
font-family: "KaTeX-Italic";
33-
src: url("/fonts/KaTeX_Main-Italic.woff2");
34-
unicode-range: U+0041-005A, U+0061-007A;
35-
}
36-
3731
@font-face {
3832
font-family: "KaTeX";
39-
src: url("/fonts/KaTeX_Main-Widesign.woff2");
40-
}
41-
42-
@font-face {
43-
font-family: "KaTeX-Math";
44-
src: url("/fonts/KaTeX_Math-Italic.woff2");
33+
src: url("/fonts/KaTeX_AllInOne.woff2");
4534
}
4635

4736
.styled::part(input),
4837
.styled {
49-
font-family: "KaTeX-Italic", "KaTeX", "KaTeX-Math", "Times new roman";
38+
font-family: "KaTeX", "Times new roman";
39+
font-variant-ligatures: common-ligatures discretionary-ligatures contextual
40+
historical-ligatures;
5041
}
5142

5243
.monospace,

0 commit comments

Comments
 (0)