Merge pull request #102 from subinsv/improvement/fontDisplayProperty

[Improvement] Avoid Invisible text during loading (FOIT)
This commit is contained in:
Radek Kozieł 2019-11-03 15:48:38 +01:00 committed by GitHub
commit ca2e314c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -5,6 +5,7 @@
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Regular.woff2") format("woff2"),
url("../fonts/Inter-Regular.woff") format("woff");
font-display: swap;
}
@font-face {
font-family: 'Inter';
@ -13,6 +14,7 @@
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Italic.woff2") format("woff2"),
url("../fonts/Inter-Italic.woff") format("woff");
font-display: swap;
}
@font-face {
@ -22,6 +24,7 @@
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Medium.woff2") format("woff2"),
url("../fonts/Inter-Medium.woff") format("woff");
font-display: swap;
}
@font-face {
font-family: 'Inter';
@ -30,6 +33,7 @@
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-MediumItalic.woff2") format("woff2"),
url("../fonts/Inter-MediumItalic.woff") format("woff");
font-display: swap;
}
@font-face {
@ -39,6 +43,7 @@
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Bold.woff2") format("woff2"),
url("../fonts/Inter-Bold.woff") format("woff");
font-display: swap;
}
@font-face {
font-family: 'Inter';
@ -47,4 +52,5 @@
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-BoldItalic.woff2") format("woff2"),
url("../fonts/Inter-BoldItalic.woff") format("woff");
font-display: swap;
}

File diff suppressed because one or more lines are too long