editor: add font-display: swap to hack fontface

This commit is contained in:
Abdullah Atta
2023-08-07 08:44:27 +05:00
parent 0074548b84
commit 60ba345e6c
2 changed files with 12 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
* -------------------------- */
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-regular.woff2") format("woff2"),
url("fonts/hack-regular.woff") format("woff"),
url("fonts/hack-regular.ttf") format("truetype");
@@ -15,6 +16,7 @@
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-bold.woff2") format("woff2"),
url("fonts/hack-bold.woff") format("woff"),
url("fonts/hack-bold.ttf") format("truetype");
@@ -24,6 +26,7 @@
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-italic.woff2") format("woff2"),
url("fonts/hack-italic.woff") format("woff"),
url("fonts/hack-italic.ttf") format("truetype");
@@ -33,6 +36,7 @@
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-bolditalic.woff2") format("woff2"),
url("fonts/hack-bolditalic.woff") format("woff"),
url("fonts/hack-bolditalic.ttf") format("truetype");

View File

@@ -6,6 +6,7 @@
* -------------------------- */
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
@@ -13,6 +14,7 @@
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-bold.ttf") format("truetype");
font-weight: 700;
font-style: normal;
@@ -20,6 +22,7 @@
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-italic.ttf") format("truetype");
font-weight: 400;
font-style: italic;
@@ -27,6 +30,7 @@
@font-face {
font-family: "Hack";
font-display: swap;
src: url("fonts/hack-bolditalic.ttf") format("truetype");
font-weight: 700;
font-style: italic;
@@ -37,6 +41,7 @@
@font-face {
font-family: "Noto Serif";
font-style: normal;
font-display: swap;
font-weight: 400;
src: local(""),
url("fonts/noto-serif-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.ttf") format("truetype"),
@@ -46,6 +51,7 @@
@font-face {
font-family: "Noto Serif";
font-style: italic;
font-display: swap;
font-weight: 400;
src: local(""),
url("fonts/noto-serif-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.ttf") format("truetype"),
@@ -55,6 +61,7 @@
@font-face {
font-family: "Noto Serif";
font-style: normal;
font-display: swap;
font-weight: 700;
src: local(""),
url("fonts/noto-serif-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.ttf") format("truetype"),
@@ -64,6 +71,7 @@
@font-face {
font-family: "Noto Serif";
font-style: italic;
font-display: swap;
font-weight: 700;
src: local(""),
url("fonts/noto-serif-v21-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700italic.ttf") format("truetype"),