Skip to content

Commit d682fdc

Browse files
committed
update math fonts
1 parent 79d38d7 commit d682fdc

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

app/(taxonomy)/hierarchy/hierarchy.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Hierarchy({ data }) {
2828
.attr("viewBox", [0, 0, width, dx * (600 + 10)])
2929
.style("max-width", "100%")
3030
.style("height", "auto")
31-
.style("font", "10px Katex_Main");
31+
.style("font", "10px PithagonSerif");
3232

3333
// Links
3434
svg

app/(taxonomy)/indentedtree/indentedtree.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function IndentedTree({ data }) {
2828
.attr("viewBox", [0, 0, width, dx * (600 + 10)])
2929
.style("max-width", "100%")
3030
.style("height", "auto")
31-
.style("font", "10px Katex_Main");
31+
.style("font", "10px PithagonSerif");
3232

3333
// Links
3434
svg

app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
/* SurveyWithCodeChinese, */
8989
/* SurveyWithCodeTaiwan, */
9090
SurveyWithCode,
91-
Katex_Main,
91+
PithagonSerif,
9292
"Segoe UI",
9393
TTT,
9494
ui-sans-serif,

styles/math/mathfonts.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151

5252
@font-face {
53-
font-family: KaTeX_Main;
53+
font-family: PithagonSerif;
5454
src:
5555
url("/mathfonts/serif/Pithagon-Bold.woff2") format("woff2"),
5656
url("/mathfonts/serif/Pithagon-Bold.woff") format("woff"),
@@ -60,7 +60,7 @@
6060
}
6161

6262
@font-face {
63-
font-family: KaTeX_Main;
63+
font-family: PithagonSerif;
6464
src:
6565
url("/mathfonts/serif/Pithagon-BoldItalic.woff2") format("woff2"),
6666
url("/mathfonts/serif/Pithagon-BoldItalic.woff") format("woff"),
@@ -70,7 +70,7 @@
7070
}
7171

7272
@font-face {
73-
font-family: KaTeX_Main;
73+
font-family: PithagonSerif;
7474
src:
7575
url("/mathfonts/serif/Pithagon-Italic.woff2") format("woff2"),
7676
url("/mathfonts/serif/Pithagon-Italic.woff") format("woff"),
@@ -80,7 +80,7 @@
8080
}
8181

8282
@font-face {
83-
font-family: KaTeX_Main;
83+
font-family: PithagonSerif;
8484
src:
8585
url("/mathfonts/serif/Pithagon-Regular.woff2") format("woff2"),
8686
url("/mathfonts/serif/Pithagon-Regular.woff") format("woff"),
@@ -90,7 +90,7 @@
9090
}
9191

9292
@font-face {
93-
font-family: KaTeX_Math;
93+
font-family: Pithagon;
9494
src:
9595
url("/mathfonts/Pithagon-BoldItalic.woff2") format("woff2"),
9696
url("/mathfonts/Pithagon-BoldItalic.woff") format("woff"),
@@ -100,7 +100,7 @@
100100
}
101101

102102
@font-face {
103-
font-family: KaTeX_Math;
103+
font-family: Pithagon;
104104
src:
105105
url("/mathfonts/Pithagon-Italic.woff2") format("woff2"),
106106
url("/mathfonts/Pithagon-Italic.woff") format("woff"),
@@ -150,7 +150,7 @@
150150
}
151151

152152
@font-face {
153-
font-family: KaTeX_Size1;
153+
font-family: PithagonSymbol1;
154154
src:
155155
url("/mathfonts/symbol/Pithagon_Symbol1-Regular.woff2") format("woff2"),
156156
url("/mathfonts/symbol/Pithagon_Symbol1-Regular.woff") format("woff"),
@@ -160,7 +160,7 @@
160160
}
161161

162162
@font-face {
163-
font-family: KaTeX_Size2;
163+
font-family: PithagonSymbol2;
164164
src:
165165
url("/mathfonts/symbol/Pithagon_Symbol2-Regular.woff2") format("woff2"),
166166
url("/mathfonts/symbol/Pithagon_Symbol2-Regular.woff") format("woff"),
@@ -170,7 +170,7 @@
170170
}
171171

172172
@font-face {
173-
font-family: KaTeX_Size3;
173+
font-family: PithagonSymbol3;
174174
src:
175175
url("/mathfonts/symbol/Pithagon_Symbol3-Regular.woff2") format("woff2"),
176176
url("/mathfonts/symbol/Pithagon_Symbol3-Regular.woff") format("woff"),
@@ -180,7 +180,7 @@
180180
}
181181

182182
@font-face {
183-
font-family: KaTeX_Size4;
183+
font-family: PithagonSymbol4;
184184
src:
185185
url("/mathfonts/symbol/Pithagon_Symbol4-Regular.woff2") format("woff2"),
186186
url("/mathfonts/symbol/Pithagon_Symbol4-Regular.woff") format("woff"),

styles/math/mathstyles.css

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.katex {
22
font:
3-
normal 1rem KaTeX_Main,
3+
normal 1rem PithagonSerif,
44
SurveyWithCode,
55
"Cambria Math",
66
"STIX Two Math",
@@ -22,7 +22,7 @@
2222
.katex .mpunct,
2323
.katex .minner {
2424
font-family:
25-
KaTeX_Main,
25+
PithagonSerif,
2626
SurveyWithCode,
2727
"Cambria Math",
2828
"STIX Two Math",
@@ -35,7 +35,7 @@
3535
.katex .mord.mathdefault,
3636
.katex .mord.textord {
3737
font-family:
38-
KaTeX_Main,
38+
PithagonSerif,
3939
SurveyWithCode,
4040
"Cambria Math",
4141
"STIX Two Math",
@@ -125,7 +125,7 @@
125125
}
126126

127127
.katex .textrm {
128-
font-family: KaTeX_Main;
128+
font-family: PithagonSerif;
129129
}
130130

131131
.katex .textsf {
@@ -137,12 +137,12 @@
137137
}
138138

139139
.katex .mathnormal {
140-
font-family: KaTeX_Math;
140+
font-family: Pithagon;
141141
font-style: italic;
142142
}
143143

144144
.katex .mathit {
145-
font-family: KaTeX_Main;
145+
font-family: PithagonSerif;
146146
font-style: italic;
147147
}
148148

@@ -151,12 +151,12 @@
151151
}
152152

153153
.katex .mathbf {
154-
font-family: KaTeX_Main;
154+
font-family: PithagonSerif;
155155
font-weight: 700;
156156
}
157157

158158
.katex .boldsymbol {
159-
font-family: KaTeX_Math;
159+
font-family: Pithagon;
160160
font-style: italic;
161161
font-weight: 700;
162162
}
@@ -209,7 +209,7 @@
209209
}
210210

211211
.katex .mainrm {
212-
font-family: KaTeX_Main;
212+
font-family: PithagonSerif;
213213
font-style: normal;
214214
}
215215

@@ -968,27 +968,27 @@
968968
}
969969

970970
.katex .delimsizing.size1 {
971-
font-family: KaTeX_Size1;
971+
font-family: PithagonSymbol1;
972972
}
973973

974974
.katex .delimsizing.size2 {
975-
font-family: KaTeX_Size2;
975+
font-family: PithagonSymbol2;
976976
}
977977

978978
.katex .delimsizing.size3 {
979-
font-family: KaTeX_Size3;
979+
font-family: PithagonSymbol3;
980980
}
981981

982982
.katex .delimsizing.size4 {
983-
font-family: KaTeX_Size4;
983+
font-family: PithagonSymbol4;
984984
}
985985

986986
.katex .delimsizing.mult .delim-size1 > span {
987-
font-family: KaTeX_Size1;
987+
font-family: PithagonSymbol1;
988988
}
989989

990990
.katex .delimsizing.mult .delim-size4 > span {
991-
font-family: KaTeX_Size4;
991+
font-family: PithagonSymbol4;
992992
}
993993

994994
.katex .nulldelimiter {
@@ -1002,11 +1002,11 @@
10021002
}
10031003

10041004
.katex .op-symbol.small-op {
1005-
font-family: KaTeX_Size1;
1005+
font-family: PithagonSymbol1;
10061006
}
10071007

10081008
.katex .op-symbol.large-op {
1009-
font-family: KaTeX_Size2;
1009+
font-family: PithagonSymbol2;
10101010
}
10111011

10121012
.katex .accent > .vlist-t,

0 commit comments

Comments
 (0)