Set font-display: swap and reduce fonts’ sizes

Using https://www.fontsquirrel.com/tools/webfont-generator with subsets: Basic Latin, Latin-1 Sup and Latin Extended-A
This commit is contained in:
David Larlet 2023-05-19 13:41:51 -04:00
parent 908dd7cc00
commit f10fa8dec6
13 changed files with 9 additions and 6 deletions

View file

@ -5,26 +5,29 @@
@font-face { @font-face {
font-family: 'fira_sans'; font-family: 'fira_sans';
src: url('./font/FiraSans-Light.woff2') format('woff2'), src: url('./font/firasans-light.woff2') format('woff2'),
url('./font/FiraSans-Light.woff') format('woff'); url('./font/firasans-light.woff') format('woff');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: swap;
} }
@font-face { @font-face {
font-family: 'fira_sans'; font-family: 'fira_sans';
src: url('./font/FiraSans-SemiBold.woff2') format('woff2'), src: url('./font/firasans-semibold.woff2') format('woff2'),
url('./font/FiraSans-SemiBold.woff') format('woff'); url('./font/firasans-semibold.woff') format('woff');
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
font-display: swap;
} }
@font-face { @font-face {
font-family: 'fira_sans'; font-family: 'fira_sans';
src: url('./font/FiraSans-LightItalic.woff2') format('woff2'), src: url('./font/firasans-lightitalic.woff2') format('woff2'),
url('./font/FiraSans-LightItalic.woff') format('woff'); url('./font/firasans-lightitalic.woff') format('woff');
font-weight: normal; font-weight: normal;
font-style: italic; font-style: italic;
font-display: swap;
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.