diff options
author | Julius Rickert <git@juliusrickert.de> | 2022-07-31 15:31:55 +0300 |
---|---|---|
committer | Athul Cyriac Ajay <athul8720@gmail.com> | 2022-08-14 06:03:09 +0300 |
commit | fa13b875f49ce3d659ede60103ba25df199a56f4 (patch) | |
tree | 78cc015c6f891b218154df031000ae4d3626642f | |
parent | 26f57dd1f9f8c6ed3b77642b22c7d9fb53202e3d (diff) |
Add font swapping
-rw-r--r-- | assets/css/fonts.css | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/assets/css/fonts.css b/assets/css/fonts.css index 156ee63..f758f58 100644 --- a/assets/css/fonts.css +++ b/assets/css/fonts.css @@ -1,5 +1,6 @@ /* fira-sans-regular - latin */ @font-face { + font-display: swap; font-family: 'Fira Sans'; font-style: normal; font-weight: 400; @@ -12,10 +13,11 @@ url('../fonts/fira-sans-v10-latin-regular.svg#FiraSans') format('svg'); /* Legacy iOS */ } /* roboto-mono-regular - latin */ -@font-face { +@font-face { + font-display: swap; font-family: 'Roboto Mono'; font-style: normal; - font-weight: 400; + font-weight: 400; src: url('../fonts/roboto-mono-v12-latin-regular.eot'); /* IE9 Compat Modes */ src: url('../fonts/roboto-mono-v12-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/roboto-mono-v12-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ @@ -25,6 +27,7 @@ } /* ibm-plex-mono-500italic - latin */ @font-face { + font-display: swap; font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 500; |