При подключении шрифтов отображается только один шрифт
Файл fonts.sass
@font-face
font-family: 'ABC Monument Grotesk Mono'
src: url('./fonts/ABCMonumentGroteskMono-Regular.eot')
src: url('./fonts/ABCMonumentGroteskMono-Regular.eot?#iefix') format('embedded-opentype'),
url:('./fonts/ABCMonumentGroteskMono-Regular.woff2') format('woff2'),
url:('./fonts/ABCMonumentGroteskMono-Regular.woff') format('woff')
font-weight: 400
font-style: normal
font-display: swap
@font-face
font-family: 'ABC Monument Grotesk Semi-Mono'
src: url('./fonts/ABCMonumentGroteskSemi-Mono-Regular.eot')
src: url('./fonts/ABCMonumentGroteskSemi-Mono-Regular.eot?#iefix') format('embedded-opentype'),
url:('./fonts/ABCMonumentGroteskSemi-Mono-Regular.woff2') format('woff2'),
url:('./fonts/ABCMonumentGroteskSemi-Mono-Regular.woff') format('woff')
font-weight: 500
font-style: normal
font-display: swap
@font-face
font-family: 'ABC Whyte Medium'
src: url('./fonts/ABCWhyte-Medium.eot')
src: url('./fonts/ABCWhyte-Medium.eot?#iefix') format('embedded-opentype'),
url:('./fonts/ABCWhyte-Medium.woff2') format('woff2'),
url:('./fonts/ABCWhyte-Medium.woff') format('woff')
font-weight: 500
font-style: normal
font-display: swap
@font-face
font-family: 'ABC Whyte Regular'
src: url('./fonts/ABCWhyte-Regular.eot')
src: url('./fonts/ABCWhyte-Regular.eot?#iefix') format('embedded-opentype'),
url:('./fonts/ABCWhyte-Regular.woff2') format('woff2'),
url:('./fonts/ABCWhyte-Regular.woff') format('woff')
font-weight: 400
font-style: normal
font-display: swap
Вот как это выглядит на сайте
Использую препроцессор SASS и GULP
Проверял пути/имена/табуляцию, всё указано верно. Причем заметил такую штуку, что даже когда я удалял шрифт, откуда-то вместо дефолтного Times New Roman был всё тот же Whyte шрифт.
Источник: Stack Overflow на русском