mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
editor: add font-display: swap to hack fontface
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user