diff --git a/static/fonts.less b/static/fonts.less index bb385f4c4..e258ff613 100644 --- a/static/fonts.less +++ b/static/fonts.less @@ -2,12 +2,17 @@ @use-eot: true; @use-ttf: true; @use-woff: true; +@use-woff2: true; .use-eot(@family, @family-suffix) when (@use-eot = true) { src: url('@{font-folder}/KaTeX_@{family}-@{family-suffix}.eot'); src+: url('@{font-folder}/KaTeX_@{family}-@{family-suffix}.eot#iefix') format('embedded-opentype') } +.use-woff2(@family, @family-suffix) when (@use-woff2 = true) { + src+: url('@{font-folder}/KaTeX_@{family}-@{family-suffix}.woff2') format('woff2') +} + .use-woff(@family, @family-suffix) when (@use-woff = true) { src+: url('@{font-folder}/KaTeX_@{family}-@{family-suffix}.woff') format('woff') } @@ -34,6 +39,7 @@ @font-face { font-family: 'KaTeX_@{family}'; .use-eot(@family, @suffix); + .use-woff2(@family, @suffix); .use-woff(@family, @suffix); .use-ttf(@family, @suffix); font-weight: @weight; diff --git a/static/fonts/KaTeX_AMS-Regular.woff2 b/static/fonts/KaTeX_AMS-Regular.woff2 new file mode 100644 index 000000000..64bdd82f9 Binary files /dev/null and b/static/fonts/KaTeX_AMS-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Caligraphic-Bold.woff2 b/static/fonts/KaTeX_Caligraphic-Bold.woff2 new file mode 100644 index 000000000..010795092 Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Bold.woff2 differ diff --git a/static/fonts/KaTeX_Caligraphic-Regular.woff2 b/static/fonts/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 000000000..0e692ea34 Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Fraktur-Bold.woff2 b/static/fonts/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 000000000..b4caf092f Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Bold.woff2 differ diff --git a/static/fonts/KaTeX_Fraktur-Regular.woff2 b/static/fonts/KaTeX_Fraktur-Regular.woff2 new file mode 100644 index 000000000..1dd379445 Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Greek-Bold.woff2 b/static/fonts/KaTeX_Greek-Bold.woff2 new file mode 100644 index 000000000..1e289dd5e Binary files /dev/null and b/static/fonts/KaTeX_Greek-Bold.woff2 differ diff --git a/static/fonts/KaTeX_Greek-BoldItalic.woff2 b/static/fonts/KaTeX_Greek-BoldItalic.woff2 new file mode 100644 index 000000000..8a18d2e35 Binary files /dev/null and b/static/fonts/KaTeX_Greek-BoldItalic.woff2 differ diff --git a/static/fonts/KaTeX_Greek-Italic.woff2 b/static/fonts/KaTeX_Greek-Italic.woff2 new file mode 100644 index 000000000..20559746f Binary files /dev/null and b/static/fonts/KaTeX_Greek-Italic.woff2 differ diff --git a/static/fonts/KaTeX_Greek-Regular.woff2 b/static/fonts/KaTeX_Greek-Regular.woff2 new file mode 100644 index 000000000..48ed7f118 Binary files /dev/null and b/static/fonts/KaTeX_Greek-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Main-Bold.woff2 b/static/fonts/KaTeX_Main-Bold.woff2 new file mode 100644 index 000000000..994f3de51 Binary files /dev/null and b/static/fonts/KaTeX_Main-Bold.woff2 differ diff --git a/static/fonts/KaTeX_Main-Italic.woff2 b/static/fonts/KaTeX_Main-Italic.woff2 new file mode 100644 index 000000000..343057396 Binary files /dev/null and b/static/fonts/KaTeX_Main-Italic.woff2 differ diff --git a/static/fonts/KaTeX_Main-Regular.woff2 b/static/fonts/KaTeX_Main-Regular.woff2 new file mode 100644 index 000000000..8c98320f9 Binary files /dev/null and b/static/fonts/KaTeX_Main-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Math-BoldItalic.woff2 b/static/fonts/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 000000000..bfe677c1a Binary files /dev/null and b/static/fonts/KaTeX_Math-BoldItalic.woff2 differ diff --git a/static/fonts/KaTeX_Math-Italic.woff2 b/static/fonts/KaTeX_Math-Italic.woff2 new file mode 100644 index 000000000..0ef8a1e8e Binary files /dev/null and b/static/fonts/KaTeX_Math-Italic.woff2 differ diff --git a/static/fonts/KaTeX_Math-Regular.woff2 b/static/fonts/KaTeX_Math-Regular.woff2 new file mode 100644 index 000000000..24b63d8a6 Binary files /dev/null and b/static/fonts/KaTeX_Math-Regular.woff2 differ diff --git a/static/fonts/KaTeX_SansSerif-Bold.woff2 b/static/fonts/KaTeX_SansSerif-Bold.woff2 new file mode 100644 index 000000000..09caf7dc1 Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Bold.woff2 differ diff --git a/static/fonts/KaTeX_SansSerif-Italic.woff2 b/static/fonts/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 000000000..8d47a38e6 Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Italic.woff2 differ diff --git a/static/fonts/KaTeX_SansSerif-Regular.woff2 b/static/fonts/KaTeX_SansSerif-Regular.woff2 new file mode 100644 index 000000000..3feeb7bac Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Script-Regular.woff2 b/static/fonts/KaTeX_Script-Regular.woff2 new file mode 100644 index 000000000..ff0c5cfb2 Binary files /dev/null and b/static/fonts/KaTeX_Script-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size1-Regular.woff2 b/static/fonts/KaTeX_Size1-Regular.woff2 new file mode 100644 index 000000000..764c9335a Binary files /dev/null and b/static/fonts/KaTeX_Size1-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size2-Regular.woff2 b/static/fonts/KaTeX_Size2-Regular.woff2 new file mode 100644 index 000000000..a51a1fdbb Binary files /dev/null and b/static/fonts/KaTeX_Size2-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size3-Regular.woff2 b/static/fonts/KaTeX_Size3-Regular.woff2 new file mode 100644 index 000000000..4a4ba33a4 Binary files /dev/null and b/static/fonts/KaTeX_Size3-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size4-Regular.woff2 b/static/fonts/KaTeX_Size4-Regular.woff2 new file mode 100644 index 000000000..14b0dc280 Binary files /dev/null and b/static/fonts/KaTeX_Size4-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Typewriter-Regular.woff2 b/static/fonts/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 000000000..52b55385a Binary files /dev/null and b/static/fonts/KaTeX_Typewriter-Regular.woff2 differ