feat: add font-display: swap to font-face declaration
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
src: url('$lib/assets/font/AdwaitaSans-Regular.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* Sans Italic */
|
||||
@@ -12,6 +13,7 @@
|
||||
src: url('$lib/assets/font/AdwaitaSans-Italic.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* Mono Regular */
|
||||
@@ -20,6 +22,7 @@
|
||||
src: url('$lib/assets/font/AdwaitaMono-Regular.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* Mono Italic */
|
||||
@@ -28,6 +31,7 @@
|
||||
src: url('$lib/assets/font/AdwaitaMono-Italic.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* Mono Bold */
|
||||
@@ -36,6 +40,7 @@
|
||||
src: url('$lib/assets/font/AdwaitaMono-Bold.ttf') format('truetype');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* Mono Bold Italic */
|
||||
@@ -44,4 +49,5 @@
|
||||
src: url('$lib/assets/font/AdwaitaMono-BoldItalic.ttf') format('truetype');
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
Reference in New Issue
Block a user