From 505eb2cb72f2d50eef7ef399b5051a3e0ff63f3c Mon Sep 17 00:00:00 2001 From: welpo Date: Thu, 16 Feb 2023 01:04:26 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20improvement:=20try=20to=20?= =?UTF-8?q?load=20local=20fonts=20first?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/main.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sass/main.scss b/sass/main.scss index a08b48d..2586472 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -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; }