chore: use ttf fonts on mobile

This commit is contained in:
ammarahm-ed
2022-07-12 13:45:18 +05:00
parent a1c043f943
commit 8ebc6106d8
9 changed files with 1266 additions and 5 deletions

View File

@@ -7,7 +7,8 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-regular.woff2") format("woff2"),
url("fonts/hack-regular.woff") format("woff");
url("fonts/hack-regular.woff") format("woff"),
url("fonts/hack-regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
}
@@ -15,7 +16,8 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-bold.woff2") format("woff2"),
url("fonts/hack-bold.woff") format("woff");
url("fonts/hack-bold.woff") format("woff"),
url("fonts/hack-bold.ttf") format("truetype");
font-weight: 700;
font-style: normal;
}
@@ -23,7 +25,8 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-italic.woff2") format("woff2"),
url("fonts/hack-italic.woff") format("woff");
url("fonts/hack-italic.woff") format("woff"),
url("fonts/hack-italic.ttf") format("truetype");
font-weight: 400;
font-style: italic;
}
@@ -31,7 +34,8 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-bolditalic.woff2") format("woff2"),
url("fonts/hack-bolditalic.woff") format("woff");
url("fonts/hack-bolditalic.woff") format("woff"),
url("fonts/hack-bolditalic.ttf") format("truetype");
font-weight: 700;
font-style: italic;
}

View File

@@ -0,0 +1,33 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: "Hack";
src: url("fonts/hack-regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-bold.ttf") format("truetype");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-italic.ttf") format("truetype");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-bolditalic.ttf") format("truetype");
font-weight: 700;
font-style: italic;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,160 @@
@font-face {
font-family: KaTeX_AMS;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),
url(fonts/KaTeX_AMS-Regular.woff) format("woff"),
url(fonts/KaTeX_AMS-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Caligraphic;
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),
url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),
url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Caligraphic;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),
url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Fraktur;
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),
url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),
url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Fraktur;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),
url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),
url(fonts/KaTeX_Main-Bold.woff) format("woff"),
url(fonts/KaTeX_Main-Bold.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: italic;
font-weight: 700;
src: url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),
url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),
url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: italic;
font-weight: 400;
src: url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),
url(fonts/KaTeX_Main-Italic.woff) format("woff"),
url(fonts/KaTeX_Main-Italic.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Main-Regular.woff) format("woff"),
url(fonts/KaTeX_Main-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Math;
font-style: italic;
font-weight: 700;
src: url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),
url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),
url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Math;
font-style: italic;
font-weight: 400;
src: url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),
url(fonts/KaTeX_Math-Italic.woff) format("woff"),
url(fonts/KaTeX_Math-Italic.ttf) format("truetype");
}
@font-face {
font-family: "KaTeX_SansSerif";
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),
url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),
url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype");
}
@font-face {
font-family: "KaTeX_SansSerif";
font-style: italic;
font-weight: 400;
src: url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),
url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),
url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype");
}
@font-face {
font-family: "KaTeX_SansSerif";
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),
url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),
url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Script;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Script-Regular.woff) format("woff"),
url(fonts/KaTeX_Script-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size1;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Size1-Regular.woff) format("woff"),
url(fonts/KaTeX_Size1-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size2;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Size2-Regular.woff) format("woff"),
url(fonts/KaTeX_Size2-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size3;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Size3-Regular.woff) format("woff"),
url(fonts/KaTeX_Size3-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size4;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Size4-Regular.woff) format("woff"),
url(fonts/KaTeX_Size4-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Typewriter;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),
url(fonts/KaTeX_Typewriter-Regular.woff) format("woff"),
url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype");
}

View File

@@ -0,0 +1,120 @@
@font-face {
font-family: KaTeX_AMS;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_AMS-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Caligraphic;
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Caligraphic;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Fraktur;
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Fraktur;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_Main-Bold.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: italic;
font-weight: 700;
src: url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: italic;
font-weight: 400;
src: url(fonts/KaTeX_Main-Italic.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Main;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Main-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Math;
font-style: italic;
font-weight: 700;
src: url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Math;
font-style: italic;
font-weight: 400;
src: url(fonts/KaTeX_Math-Italic.ttf) format("truetype");
}
@font-face {
font-family: "KaTeX_SansSerif";
font-style: normal;
font-weight: 700;
src: url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype");
}
@font-face {
font-family: "KaTeX_SansSerif";
font-style: italic;
font-weight: 400;
src: url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype");
}
@font-face {
font-family: "KaTeX_SansSerif";
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Script;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Script-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size1;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size1-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size2;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size2-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size3;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size3-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Size4;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Size4-Regular.ttf) format("truetype");
}
@font-face {
font-family: KaTeX_Typewriter;
font-style: normal;
font-weight: 400;
src: url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype");
}

File diff suppressed because one or more lines are too long