|
1 | | -/* KaTeX Main Font Family */ |
2 | 1 | @font-face { |
3 | | - font-family: "KaTeX_Main"; |
4 | | - font-style: normal; |
5 | | - font-weight: 400; |
6 | | - src: |
7 | | - local("KaTeX_Main-Regular"), |
8 | | - url("/mathfonts/KaTeX_Main-Regular.woff2") format("woff2"), |
9 | | - url("/mathfonts/KaTeX_Main-Regular.woff") format("woff"), |
10 | | - url("/mathfonts/KaTeX_Main-Regular.ttf") format("truetype"); |
11 | | -} |
12 | | - |
13 | | -@font-face { |
14 | | - font-family: "KaTeX_Main"; |
15 | | - font-style: italic; |
16 | | - font-weight: 400; |
| 2 | + font-family: "SurveyWithCode"; |
17 | 3 | src: |
18 | | - local("KaTeX_Main-Italic"), |
19 | | - url("/mathfonts/KaTeX_Main-Italic.woff2") format("woff2"), |
20 | | - url("/mathfonts/KaTeX_Main-Italic.woff") format("woff"), |
21 | | - url("/mathfonts/KaTeX_Main-Italic.ttf") format("truetype"); |
22 | | -} |
23 | | - |
24 | | -@font-face { |
25 | | - font-family: "KaTeX_Main"; |
| 4 | + url("/serif/SurveyWithCode-Bold.woff2") format("woff2"), |
| 5 | + url("/serif/SurveyWithCode-Bold.woff") format("woff"), |
| 6 | + url("/serif/SurveyWithCode-Bold.ttf") format("truetype"); |
| 7 | + font-weight: bold; |
26 | 8 | font-style: normal; |
27 | | - font-weight: 700; |
28 | | - src: |
29 | | - local("KaTeX_Main-Bold"), |
30 | | - url("/mathfonts/KaTeX_Main-Bold.woff2") format("woff2"), |
31 | | - url("/mathfonts/KaTeX_Main-Bold.woff") format("woff"), |
32 | | - url("/mathfonts/KaTeX_Main-Bold.ttf") format("truetype"); |
33 | | -} |
34 | | - |
35 | | -@font-face { |
36 | | - font-family: "KaTeX_Main"; |
37 | | - font-style: italic; |
38 | | - font-weight: 700; |
39 | | - src: |
40 | | - local("KaTeX_Main-BoldItalic"), |
41 | | - url("/mathfonts/KaTeX_Main-BoldItalic.woff2") format("woff2"), |
42 | | - url("/mathfonts/KaTeX_Main-BoldItalic.woff") format("woff"), |
43 | | - url("/mathfonts/KaTeX_Main-BoldItalic.ttf") format("truetype"); |
| 9 | + font-display: swap; |
44 | 10 | } |
45 | 11 |
|
46 | | -/* KaTeX Sans Serif Font Family */ |
47 | 12 | @font-face { |
48 | | - font-family: "KaTeX_SansSerif"; |
49 | | - font-style: normal; |
50 | | - font-weight: 400; |
| 13 | + font-family: "SurveyWithCode"; |
51 | 14 | src: |
52 | | - local("KaTeX_SansSerif-Regular"), |
53 | | - url("/mathfonts/KaTeX_SansSerif-Regular.woff2") format("woff2"), |
54 | | - url("/mathfonts/KaTeX_SansSerif-Regular.woff") format("woff"), |
55 | | - url("/mathfonts/KaTeX_SansSerif-Regular.ttf") format("truetype"); |
56 | | -} |
57 | | - |
58 | | -@font-face { |
59 | | - font-family: "KaTeX_SansSerif"; |
| 15 | + url("/serif/SurveyWithCode-BoldItalic.woff2") format("woff2"), |
| 16 | + url("/serif/SurveyWithCode-BoldItalic.woff") format("woff"), |
| 17 | + url("/serif/SurveyWithCode-BoldItalic.ttf") format("truetype"); |
| 18 | + font-weight: bold; |
60 | 19 | font-style: italic; |
61 | | - font-weight: 400; |
62 | | - src: |
63 | | - local("KaTeX_SansSerif-Italic"), |
64 | | - url("/mathfonts/KaTeX_SansSerif-Italic.woff2") format("woff2"), |
65 | | - url("/mathfonts/KaTeX_SansSerif-Italic.woff") format("woff"), |
66 | | - url("/mathfonts/KaTeX_SansSerif-Italic.ttf") format("truetype"); |
| 20 | + font-display: swap; |
67 | 21 | } |
68 | 22 |
|
69 | 23 | @font-face { |
70 | | - font-family: "KaTeX_SansSerif"; |
71 | | - font-style: normal; |
72 | | - font-weight: 700; |
| 24 | + font-family: "SurveyWithCode"; |
73 | 25 | src: |
74 | | - local("KaTeX_SansSerif-Bold"), |
75 | | - url("/mathfonts/KaTeX_SansSerif-Bold.woff2") format("woff2"), |
76 | | - url("/mathfonts/KaTeX_SansSerif-Bold.woff") format("woff"), |
77 | | - url("/mathfonts/KaTeX_SansSerif-Bold.ttf") format("truetype"); |
| 26 | + url("/serif/SurveyWithCode-Regular.woff2") format("woff2"), |
| 27 | + url("/serif/SurveyWithCode-Regular.woff") format("woff"), |
| 28 | + url("/serif/SurveyWithCode-Regular.ttf") format("truetype"); |
| 29 | + font-weight: 500; |
| 30 | + font-style: normal; |
| 31 | + font-display: swap; |
78 | 32 | } |
79 | 33 |
|
80 | | -/* KaTeX Typewriter Font Family */ |
81 | 34 | @font-face { |
82 | | - font-family: "KaTeX_Typewriter"; |
83 | | - font-style: normal; |
84 | | - font-weight: 400; |
| 35 | + font-family: "SurveyWithCode"; |
85 | 36 | src: |
86 | | - local("KaTeX_Typewriter-Regular"), |
87 | | - url("/mathfonts/KaTeX_Typewriter-Regular.woff2") format("woff2"), |
88 | | - url("/mathfonts/KaTeX_Typewriter-Regular.woff") format("woff"), |
89 | | - url("/mathfonts/KaTeX_Typewriter-Regular.ttf") format("truetype"); |
| 37 | + url("/serif/SurveyWithCode-Italic.woff2") format("woff2"), |
| 38 | + url("/serif/SurveyWithCode-Italic.woff") format("woff"), |
| 39 | + url("/serif/SurveyWithCode-Italic.ttf") format("truetype"); |
| 40 | + font-weight: 500; |
| 41 | + font-style: italic; |
| 42 | + font-display: swap; |
90 | 43 | } |
91 | 44 |
|
92 | 45 | /* Keep TTT fonts as fallback */ |
|
0 commit comments