I downloaded the font to my computer Facon
This is how the connection works:
@font-face {
font-family: 'Facon';
src: local('Facon'),
url('../fonts/facon.woff2') format('woff2'),
url('../fonts/facon.woff') format('woff');
font-weight: 700;
font-style: italic;
font-display: swap;
}
But this does not work like this:
@font-face {
font-family: 'Facon';
src: local('Facon'),
local('Facon-Bold-Italic'),
url('../fonts/facon.woff2') format('woff2'),
url('../fonts/facon.woff') format('woff');
font-weight: 700;
font-style: italic;
font-display: swap;
}
Facon has only bold and italic styles in one file
Do I need to use the second line local() or not?
Aucun commentaire:
Enregistrer un commentaire