Add WOFF2 versions of the fonts
Contrary to other web font formats, the new WOFF 2.0 Web Font compression format is optimized for file size, memory usage, and decompression speed. WOFF2 has been supported in Chrome and Opera for a while now. See https://dev.opera.com/blog/opera-23/ for more info.
This commit is contained in:
parent
5722b45633
commit
48870f05c1
|
@ -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;
|
||||
|
|
BIN
static/fonts/KaTeX_AMS-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_AMS-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Caligraphic-Bold.woff2
Normal file
BIN
static/fonts/KaTeX_Caligraphic-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Caligraphic-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Caligraphic-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Fraktur-Bold.woff2
Normal file
BIN
static/fonts/KaTeX_Fraktur-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Fraktur-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Fraktur-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Greek-Bold.woff2
Normal file
BIN
static/fonts/KaTeX_Greek-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Greek-BoldItalic.woff2
Normal file
BIN
static/fonts/KaTeX_Greek-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Greek-Italic.woff2
Normal file
BIN
static/fonts/KaTeX_Greek-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Greek-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Greek-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Main-Bold.woff2
Normal file
BIN
static/fonts/KaTeX_Main-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Main-Italic.woff2
Normal file
BIN
static/fonts/KaTeX_Main-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Main-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Main-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Math-BoldItalic.woff2
Normal file
BIN
static/fonts/KaTeX_Math-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Math-Italic.woff2
Normal file
BIN
static/fonts/KaTeX_Math-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Math-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Math-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_SansSerif-Bold.woff2
Normal file
BIN
static/fonts/KaTeX_SansSerif-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_SansSerif-Italic.woff2
Normal file
BIN
static/fonts/KaTeX_SansSerif-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_SansSerif-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_SansSerif-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Script-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Script-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Size1-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Size1-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Size2-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Size2-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Size3-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Size3-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Size4-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Size4-Regular.woff2
Normal file
Binary file not shown.
BIN
static/fonts/KaTeX_Typewriter-Regular.woff2
Normal file
BIN
static/fonts/KaTeX_Typewriter-Regular.woff2
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user