use fallback strategy for font loading

This commit is contained in:
John Bowdre 2024-04-23 16:38:42 -05:00
parent 14916bbaf4
commit bbaf6a58d2

View file

@ -8,6 +8,7 @@
font-family: 'Berkeley Mono'; font-family: 'Berkeley Mono';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-display: fallback;
src: local('Berkeley Mono'), src: local('Berkeley Mono'),
url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Regular.woff2') format('woff2'), url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Regular.woff2') format('woff2'),
url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Regular.woff') format('woff') url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Regular.woff') format('woff')
@ -17,6 +18,7 @@
font-family: 'Berkeley Mono'; font-family: 'Berkeley Mono';
font-style: italic; font-style: italic;
font-weight: 400; font-weight: 400;
font-display: fallback;
src: local('Berkeley Mono Italic'), src: local('Berkeley Mono Italic'),
url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Italic.woff2') format('woff2'), url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Italic.woff2') format('woff2'),
url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Italic.woff') format('woff') url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Italic.woff') format('woff')
@ -26,6 +28,7 @@
font-family: 'Berkeley Mono'; font-family: 'Berkeley Mono';
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
font-display: fallback;
src: local('Berkeley Mono Bold'), src: local('Berkeley Mono Bold'),
url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Bold.woff2') format('woff2'), url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Bold.woff2') format('woff2'),
url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Bold.woff') format('woff') url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Bold.woff') format('woff')