|
| 1 | +// Override KaTeX font paths to use fonts served from our static directory |
| 2 | +// This file should be imported AFTER katex.min.css to override the @font-face declarations |
| 3 | + |
| 4 | +@font-face { |
| 5 | + font-family: KaTeX_AMS; |
| 6 | + font-style: normal; |
| 7 | + font-weight: 400; |
| 8 | + src: url("/fonts/katex/KaTeX_AMS-Regular.woff2") format("woff2"), |
| 9 | + url("/fonts/katex/KaTeX_AMS-Regular.woff") format("woff"), |
| 10 | + url("/fonts/katex/KaTeX_AMS-Regular.ttf") format("truetype"); |
| 11 | +} |
| 12 | + |
| 13 | +@font-face { |
| 14 | + font-family: KaTeX_Caligraphic; |
| 15 | + font-style: normal; |
| 16 | + font-weight: 700; |
| 17 | + src: url("/fonts/katex/KaTeX_Caligraphic-Bold.woff2") format("woff2"), |
| 18 | + url("/fonts/katex/KaTeX_Caligraphic-Bold.woff") format("woff"), |
| 19 | + url("/fonts/katex/KaTeX_Caligraphic-Bold.ttf") format("truetype"); |
| 20 | +} |
| 21 | + |
| 22 | +@font-face { |
| 23 | + font-family: KaTeX_Caligraphic; |
| 24 | + font-style: normal; |
| 25 | + font-weight: 400; |
| 26 | + src: url("/fonts/katex/KaTeX_Caligraphic-Regular.woff2") format("woff2"), |
| 27 | + url("/fonts/katex/KaTeX_Caligraphic-Regular.woff") format("woff"), |
| 28 | + url("/fonts/katex/KaTeX_Caligraphic-Regular.ttf") format("truetype"); |
| 29 | +} |
| 30 | + |
| 31 | +@font-face { |
| 32 | + font-family: KaTeX_Fraktur; |
| 33 | + font-style: normal; |
| 34 | + font-weight: 700; |
| 35 | + src: url("/fonts/katex/KaTeX_Fraktur-Bold.woff2") format("woff2"), |
| 36 | + url("/fonts/katex/KaTeX_Fraktur-Bold.woff") format("woff"), |
| 37 | + url("/fonts/katex/KaTeX_Fraktur-Bold.ttf") format("truetype"); |
| 38 | +} |
| 39 | + |
| 40 | +@font-face { |
| 41 | + font-family: KaTeX_Fraktur; |
| 42 | + font-style: normal; |
| 43 | + font-weight: 400; |
| 44 | + src: url("/fonts/katex/KaTeX_Fraktur-Regular.woff2") format("woff2"), |
| 45 | + url("/fonts/katex/KaTeX_Fraktur-Regular.woff") format("woff"), |
| 46 | + url("/fonts/katex/KaTeX_Fraktur-Regular.ttf") format("truetype"); |
| 47 | +} |
| 48 | + |
| 49 | +@font-face { |
| 50 | + font-family: KaTeX_Main; |
| 51 | + font-style: normal; |
| 52 | + font-weight: 700; |
| 53 | + src: url("/fonts/katex/KaTeX_Main-Bold.woff2") format("woff2"), |
| 54 | + url("/fonts/katex/KaTeX_Main-Bold.woff") format("woff"), |
| 55 | + url("/fonts/katex/KaTeX_Main-Bold.ttf") format("truetype"); |
| 56 | +} |
| 57 | + |
| 58 | +@font-face { |
| 59 | + font-family: KaTeX_Main; |
| 60 | + font-style: italic; |
| 61 | + font-weight: 700; |
| 62 | + src: url("/fonts/katex/KaTeX_Main-BoldItalic.woff2") format("woff2"), |
| 63 | + url("/fonts/katex/KaTeX_Main-BoldItalic.woff") format("woff"), |
| 64 | + url("/fonts/katex/KaTeX_Main-BoldItalic.ttf") format("truetype"); |
| 65 | +} |
| 66 | + |
| 67 | +@font-face { |
| 68 | + font-family: KaTeX_Main; |
| 69 | + font-style: italic; |
| 70 | + font-weight: 400; |
| 71 | + src: url("/fonts/katex/KaTeX_Main-Italic.woff2") format("woff2"), |
| 72 | + url("/fonts/katex/KaTeX_Main-Italic.woff") format("woff"), |
| 73 | + url("/fonts/katex/KaTeX_Main-Italic.ttf") format("truetype"); |
| 74 | +} |
| 75 | + |
| 76 | +@font-face { |
| 77 | + font-family: KaTeX_Main; |
| 78 | + font-style: normal; |
| 79 | + font-weight: 400; |
| 80 | + src: url("/fonts/katex/KaTeX_Main-Regular.woff2") format("woff2"), |
| 81 | + url("/fonts/katex/KaTeX_Main-Regular.woff") format("woff"), |
| 82 | + url("/fonts/katex/KaTeX_Main-Regular.ttf") format("truetype"); |
| 83 | +} |
| 84 | + |
| 85 | +@font-face { |
| 86 | + font-family: KaTeX_Math; |
| 87 | + font-style: italic; |
| 88 | + font-weight: 700; |
| 89 | + src: url("/fonts/katex/KaTeX_Math-BoldItalic.woff2") format("woff2"), |
| 90 | + url("/fonts/katex/KaTeX_Math-BoldItalic.woff") format("woff"), |
| 91 | + url("/fonts/katex/KaTeX_Math-BoldItalic.ttf") format("truetype"); |
| 92 | +} |
| 93 | + |
| 94 | +@font-face { |
| 95 | + font-family: KaTeX_Math; |
| 96 | + font-style: italic; |
| 97 | + font-weight: 400; |
| 98 | + src: url("/fonts/katex/KaTeX_Math-Italic.woff2") format("woff2"), |
| 99 | + url("/fonts/katex/KaTeX_Math-Italic.woff") format("woff"), |
| 100 | + url("/fonts/katex/KaTeX_Math-Italic.ttf") format("truetype"); |
| 101 | +} |
| 102 | + |
| 103 | +@font-face { |
| 104 | + font-family: KaTeX_SansSerif; |
| 105 | + font-style: normal; |
| 106 | + font-weight: 700; |
| 107 | + src: url("/fonts/katex/KaTeX_SansSerif-Bold.woff2") format("woff2"), |
| 108 | + url("/fonts/katex/KaTeX_SansSerif-Bold.woff") format("woff"), |
| 109 | + url("/fonts/katex/KaTeX_SansSerif-Bold.ttf") format("truetype"); |
| 110 | +} |
| 111 | + |
| 112 | +@font-face { |
| 113 | + font-family: KaTeX_SansSerif; |
| 114 | + font-style: italic; |
| 115 | + font-weight: 400; |
| 116 | + src: url("/fonts/katex/KaTeX_SansSerif-Italic.woff2") format("woff2"), |
| 117 | + url("/fonts/katex/KaTeX_SansSerif-Italic.woff") format("woff"), |
| 118 | + url("/fonts/katex/KaTeX_SansSerif-Italic.ttf") format("truetype"); |
| 119 | +} |
| 120 | + |
| 121 | +@font-face { |
| 122 | + font-family: KaTeX_SansSerif; |
| 123 | + font-style: normal; |
| 124 | + font-weight: 400; |
| 125 | + src: url("/fonts/katex/KaTeX_SansSerif-Regular.woff2") format("woff2"), |
| 126 | + url("/fonts/katex/KaTeX_SansSerif-Regular.woff") format("woff"), |
| 127 | + url("/fonts/katex/KaTeX_SansSerif-Regular.ttf") format("truetype"); |
| 128 | +} |
| 129 | + |
| 130 | +@font-face { |
| 131 | + font-family: KaTeX_Script; |
| 132 | + font-style: normal; |
| 133 | + font-weight: 400; |
| 134 | + src: url("/fonts/katex/KaTeX_Script-Regular.woff2") format("woff2"), |
| 135 | + url("/fonts/katex/KaTeX_Script-Regular.woff") format("woff"), |
| 136 | + url("/fonts/katex/KaTeX_Script-Regular.ttf") format("truetype"); |
| 137 | +} |
| 138 | + |
| 139 | +@font-face { |
| 140 | + font-family: KaTeX_Size1; |
| 141 | + font-style: normal; |
| 142 | + font-weight: 400; |
| 143 | + src: url("/fonts/katex/KaTeX_Size1-Regular.woff2") format("woff2"), |
| 144 | + url("/fonts/katex/KaTeX_Size1-Regular.woff") format("woff"), |
| 145 | + url("/fonts/katex/KaTeX_Size1-Regular.ttf") format("truetype"); |
| 146 | +} |
| 147 | + |
| 148 | +@font-face { |
| 149 | + font-family: KaTeX_Size2; |
| 150 | + font-style: normal; |
| 151 | + font-weight: 400; |
| 152 | + src: url("/fonts/katex/KaTeX_Size2-Regular.woff2") format("woff2"), |
| 153 | + url("/fonts/katex/KaTeX_Size2-Regular.woff") format("woff"), |
| 154 | + url("/fonts/katex/KaTeX_Size2-Regular.ttf") format("truetype"); |
| 155 | +} |
| 156 | + |
| 157 | +@font-face { |
| 158 | + font-family: KaTeX_Size3; |
| 159 | + font-style: normal; |
| 160 | + font-weight: 400; |
| 161 | + src: url("/fonts/katex/KaTeX_Size3-Regular.woff2") format("woff2"), |
| 162 | + url("/fonts/katex/KaTeX_Size3-Regular.woff") format("woff"), |
| 163 | + url("/fonts/katex/KaTeX_Size3-Regular.ttf") format("truetype"); |
| 164 | +} |
| 165 | + |
| 166 | +@font-face { |
| 167 | + font-family: KaTeX_Size4; |
| 168 | + font-style: normal; |
| 169 | + font-weight: 400; |
| 170 | + src: url("/fonts/katex/KaTeX_Size4-Regular.woff2") format("woff2"), |
| 171 | + url("/fonts/katex/KaTeX_Size4-Regular.woff") format("woff"), |
| 172 | + url("/fonts/katex/KaTeX_Size4-Regular.ttf") format("truetype"); |
| 173 | +} |
| 174 | + |
| 175 | +@font-face { |
| 176 | + font-family: KaTeX_Typewriter; |
| 177 | + font-style: normal; |
| 178 | + font-weight: 400; |
| 179 | + src: url("/fonts/katex/KaTeX_Typewriter-Regular.woff2") format("woff2"), |
| 180 | + url("/fonts/katex/KaTeX_Typewriter-Regular.woff") format("woff"), |
| 181 | + url("/fonts/katex/KaTeX_Typewriter-Regular.ttf") format("truetype"); |
| 182 | +} |
0 commit comments