️ improvement: try to load local fonts first

main
welpo 2 years ago
parent 40c12a8ed0
commit 505eb2cb72
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -1,21 +1,24 @@
@font-face {
/* Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter). Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family: 'Inter';
src: url('fonts/Inter.ttf');
src: local('Inter'),
url('fonts/Inter.ttf');
font-display: swap;
}
@font-face {
/* Copyright 2014, 2015, 2016 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family: 'Source Serif Pro';
src: url('fonts/SourceSerifPro-Regular.ttf');
src: local('Source Serif Pro'),
url('fonts/SourceSerifPro-Regular.ttf');
font-display: swap;
}
@font-face {
/* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family: 'Cascadia Code';
src: url('fonts/CascadiaCode.ttf');
src: local('Cascadia Code'),
url('fonts/CascadiaCode.ttf');
font-display: swap;
}

Loading…
Cancel
Save